Skip to content

Instantly share code, notes, and snippets.

View BojanKomazec's full-sized avatar
💭
DevOps Now!

Bojan Komazec BojanKomazec

💭
DevOps Now!
View GitHub Profile
>npm list --depth=0
[email protected] C:\dev\extension-vpn
+-- @babel/[email protected]
+-- @babel/[email protected]
+-- @babel/[email protected]
+-- @babel/[email protected]
+-- @babel/[email protected]
+-- @babel/[email protected]
+-- @babel/[email protected]
+-- @babel/[email protected]
>npm list -g --depth=0
C:\Users\user\AppData\Roaming\npm
+-- @vue/[email protected]
+-- @vue/[email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
`-- [email protected]
{
"presets": ["es2015", "react"],
"plugins": []
}
npm install babel-preset-es2015 --save-dev
npm install babel-preset-react --save-dev
{
...
"scripts": {
"build": "babel ./src -d ./lib -w"
}
...
}
>npm list -g
C:\Users\user\AppData\Roaming\npm
+-- @vue/[email protected]
| +-- @vue/[email protected]
| | +-- [email protected] deduped
| | +-- [email protected] deduped
| | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | | `-- [email protected]
@BojanKomazec
BojanKomazec / gist:550ccc3a7f3c3c2be138c2cd24bfa55f
Created September 10, 2018 10:15
terminal npm can't find package.json
npm ERR! path C:\path\to\project\package.json
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open 'C:\path\to\project\package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\user_name\AppData\Roaming\npm-cache\_logs\2018-09-10T10_08_34_469Z-debug.log
>npm install -g @vue/devtools
C:\Users\komazec\AppData\Roaming\npm\vue-devtools -> C:\Users\komazec\AppData\Roaming\npm\node_modules\@vue\devtools\bin.js
> [email protected] postinstall C:\Users\komazec\AppData\Roaming\npm\node_modules\@vue\devtools\node_modules\electron
> node install.js
+ @vue/[email protected]
added 242 packages from 169 contributors in 240.393s
import Vue from "vue";
import App from "./App.vue";
Vue.config.productionTip = false;
new Vue({
render: h => h(App)
}).$mount("#app");
<html lang="en">
...
<body>
...
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
</html>