>PROBLEM
When the server is started using:
npm start app.js
it returns the following error message:
Error: Cannot find module 'L:\work\devcli_\javascript\node\work\ndprj01\ndprj01\bin\www'
at Function.Module._resolveFilename (module.js:489:15)
at Function.Module._load (module.js:439:25)
at Function.Module.runMain (module.js:609:10)
at startup (bootstrap_node.js:158:16)
at bootstrap_node.js:598:3
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ndprj01@0.0.0 start: `node ./bin/www "app500c6sql"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ndprj01@0.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
>SOLUTION
Edit "package.json" file.
The error tell at:
Error: Cannot find module 'L:\work\devcli_\javascript\node\work\ndprj01\ndprj01\bin\www'
that it is a problem concerning "bin\www".
Find "bin\www" and take it out.
- Before:
{
"name": "ndprj01",
"version": "0.0.0",
"private": true,
"scripts": {
"start": "node ./bin/www"
},
"dependencies": {
"async": "^2.5.0",
"bluebird": "^3.5.0",
- After:
{
"name": "ndprj01",
"version": "0.0.0",
"private": true,
"scripts": {
"start": "node "
},
"dependencies": {
"async": "^2.5.0",
"bluebird": "^3.5.0",
>ENV
windows
node.js
No comments:
Post a Comment