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
vpn-extension@0.1.0 C:\dev\extension-vpn
+-- @babel/core@7.0.0
+-- @babel/plugin-external-helpers@7.0.0
+-- @babel/plugin-proposal-class-properties@7.0.0
+-- @babel/plugin-proposal-object-rest-spread@7.0.0
+-- @babel/polyfill@7.0.0
+-- @babel/preset-env@7.0.0
+-- @babel/preset-typescript@7.0.0
+-- @babel/runtime@7.0.0
>npm list -g --depth=0
C:\Users\user\AppData\Roaming\npm
+-- @vue/cli@3.0.1
+-- @vue/devtools@4.1.5
+-- browserify@16.2.2
+-- jasmine@3.1.0
+-- karma-cli@1.0.1
+-- node-red@0.18.4
`-- npm@6.4.1
{
"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/cli@3.0.1
| +-- @vue/cli-shared-utils@3.0.1
| | +-- chalk@2.4.1 deduped
| | +-- execa@0.10.0 deduped
| | +-- joi@13.6.0
| | | +-- hoek@5.0.4
| | | +-- isemail@3.1.3
| | | | `-- punycode@2.1.1
@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
> electron@1.7.11 postinstall C:\Users\komazec\AppData\Roaming\npm\node_modules\@vue\devtools\node_modules\electron
> node install.js
+ @vue/devtools@4.1.5
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>