Cannot start on Windows 10 inside WebStorm
Closed this issue · 1 comments
npm install works like a charm but npm start gives this error:
npm start
online-json-diff@1.0.0 start C:<MY PATH>\json-diff
./node_modules/serve/bin/serve .
'.' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! Windows_NT 10.0.14393
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.9.5
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! online-json-diff@1.0.0 start: ./node_modules/serve/bin/serve .
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the online-json-diff@1.0.0 start script './node_modules/serve/bin/serve .'.
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 online-json-diff package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! ./node_modules/serve/bin/serve .
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs online-json-diff
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls online-json-diff
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:<MY PATH>\json-diff\npm-debug.log
npm-debug.txt
Thanks god I found it finally. Just replaced the line "start": "./node_modules/serve/bin/serve ." with "start": "serve ." on package.json@8