bradstewart / electron-boilerplate-vue

Boilerplate application for Electron runtime
725 stars 94 forks source link

"npm start" failed on Windows 10 / Node 6.0 #18

Closed wspl closed 8 years ago

wspl commented 8 years ago

Append: If I switch the version of Node to 5.11.0, it works.

I am sure that I did not modify any files after cloning

D:\Projects\electron-boilerplate-vue>npm start

> @ start D:\Projects\electron-boilerplate-vue
> node build/dev-runner.js

dev:server  > @ dev:server D:\Projects\electron-boilerplate-vue
            > node build/dev-server.js

dev:client  > @ dev:client D:\Projects\electron-boilerplate-vue
            > cross-env HOT=1 webpack --hide-modules --config build/webpack.dev-background.conf.js && cross-env HOT=1 electron "D:\Projects\electron-boilerplate-vue\dist"

dev:server  Listening at http://localhost:8080

dev:client  Hash: e8a00818127d912de9ee
            Version: webpack 1.13.0
            Time: 687ms
                    Asset     Size  Chunks             Chunk Names
            background.js  5.57 kB       0  [emitted]  background

            ERROR in Path must be a string. Received undefined

dev:server  webpack built 6e3dbc845ef470cf94c1 in 2082ms

dev:server  Hash: 6e3dbc845ef470cf94c1
            Version: webpack 1.13.0
            Time: 2082ms
                    Asset       Size  Chunks             Chunk Names
                   app.js    1.62 MB       0  [emitted]  app
              devtools.js    3.61 MB       1  [emitted]  devtools
                main.html  416 bytes          [emitted]
            devtools.html    1.09 kB          [emitted]
            Child html-webpack-plugin for "devtools.html":
                        Asset     Size  Chunks       Chunk Names
                devtools.html  24.1 kB       0
            Child html-webpack-plugin for "main.html":
                    Asset   Size  Chunks       Chunk Names
                main.html  22 kB       0

dev:server  webpack: bundle is now VALID.

dev:client

dev:client  npm

dev:client  ERR! Windows_NT 10.0.14316

dev:client  npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "D:\\Projects\\electron-boilerplate-vue\\node_modules\\npm\\bin\\npm-cli.js" "run" "dev:client" "--" "D:\\Projects\\electron-boilerplate-vue\\dist"
            npm ERR! node v6.0.0
            npm ERR! npm  v3.8.7
            npm ERR! code ELIFECYCLE
            npm ERR! @ dev:client: `cross-env HOT=1 webpack --hide-modules --config build/webpack.dev-background.conf.js && cross-env HOT=1 electron "D:\Projects\electron-boilerplate-vue\dist"`
            npm ERR! Exit status 1
            npm ERR!
            npm ERR! Failed at the @ dev:client script 'cross-env HOT=1 webpack --hide-modules --config build/webpack.dev-background.conf.js && cross-env HOT=1 electron "D:\Projects\electron-boilerplate-vue\dist"'.
            npm ERR! Make sure you have the latest version of node.js and npm installed.
            npm ERR! If you do, this is most likely a problem with the  package,
            npm ERR! not with npm itself.
            npm

dev:client  ERR! Tell the author that this fails on your system:
            npm ERR!     cross-env HOT=1 webpack --hide-modules --config build/webpack.dev-background.conf.js && cross-env HOT=1 electron "D:\Projects\electron-boilerplate-vue\dist"
            npm ERR! You can get information on how to open an issue for this project with:
            npm ERR!     npm bugs
            npm ERR! Or if that isn't available, you can get their info via:
            npm ERR!     npm owner ls
            npm ERR! There is likely additional logging output above.

dev:client

dev:client  npm ERR! Please include the following file with any support request:
            npm ERR!     D:\Projects\electron-boilerplate-vue\npm-debug.log

npm ERR! Windows_NT 10.0.14316
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start"
npm ERR! node v6.0.0
npm ERR! npm  v3.8.6
npm ERR! code ELIFECYCLE
npm ERR! @ start: `node build/dev-runner.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ start script 'node build/dev-runner.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the  package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node build/dev-runner.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     D:\Projects\electron-boilerplate-vue\npm-debug.log

Shell window screenshot: image

And show this dialog: image

Very thanks for following my question.

bradstewart commented 8 years ago

@wspl Thanks for the report. I haven't used Node 6 yet, but I will install it and see if I can reproduce the issue sometime today.

adamwathan commented 8 years ago

Same on OSX with Node 6

bradstewart commented 8 years ago

@wspl @adamwathan This should be fixed thanks to this PR (which has been merged). It's working for me on OSX with node 6, re open this if you still have problems.

addorange commented 8 years ago

@bradstewart @adamwathan hmm, appears to me after a fresh git clone on OSX with node 6.2.1 and npm 3.9.5 once again. Is there any advice to make it work?

satyavh commented 7 years ago

Have same issue, did fresh clone and NOT working