Server startSee original GitHub issue
I am getting this error
λ npm start
firstname.lastname@example.org 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! email@example.com start:
./node_modules/nodemon/bin/nodemon.js src/app.js --exec 'npm run lint && node'
npm ERR! Exit status 1
npm ERR! Failed at the firstname.lastname@example.org 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
- Created 5 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:
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…