Server start
See original GitHub issueI am getting this error
λ npm start
server@1.0.0 start c:\www\Homestead\projects\sermonapp\server ./node_modules/nodemon/bin/nodemon.js src/app.js --exec ‘npm run lint && node’
‘.’ is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! server@1.0.0 start: ./node_modules/nodemon/bin/nodemon.js src/app.js --exec 'npm run lint && node'
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the server@1.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Danre Visser\AppData\Roaming\npm-cache_logs\2017-09-19T13_45_31_696Z-debug.log
I am running local on windows system.I guess its got something to do with windows
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (5 by maintainers)
Top GitHub Comments
That’s great, looks like it’s a problem with windows
./
path format Can you modify the package.json after you done with npm install to:"start":"nodemon src/app.js"
This error happens because some windows terminals misunderstand single quotes, So there’s some parsing errors in node
You can easily detect it by errors like this
'npm is not recognized (...)
Showing a single quote before the command that is not recognized
In this case I used escaped double quotes instead of single ones in the scripts I used in package.json:
And it works now. Hope this helps…