Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

Unable to use “npm start”

While running ‘npm start’ I am getting the following error message:

 internal/modules/cjs/loader.js:582
  throw err;
  ^

Error: Cannot find module 'C:\Users\cheny\workspace\VisualStudioCode\pluralsight-js-dev-env\buildScript\srcServer.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:580:15)
at Function.Module._load (internal/modules/cjs/loader.js:506:25)
at Function.Module.runMain (internal/modules/cjs/loader.js:741:12)
at startup (internal/bootstrap/node.js:285:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:739:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! javascript-development-environment@1.0.0 start: `node 
buildScript/srcServer.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the javascript-development-environment@1.0.0 start 
script.
npm ERR! This is probably not a problem with npm. There is likely additional 
logging output above.

This is my package.json

"scripts": {
   "start": "node buildScript\\srcServer.js"
},
"dependencies": {},
"devDependencies": {
 "babel-cli": "6.14.0",
"babel-core": "6.14.0",
"babel-loader": "6.2.5",
"babel-preset-latest": "6.14.0",
"babel-register": "6.14.0",
"chai": "3.5.0",
"chalk": "1.1.3",
"cheerio": "0.22.0",
"cross-env": "2.0.0",
"eslint": "3.4.0",
"eslint-plugin-import": "1.14.0",
"eslint-watch": "2.1.14",
"express": "4.14.0",
"extract-text-webpack-plugin": "1.0.1",
"html-webpack-plugin": "2.22.0",
"jsdom": "9.4.2",
"localtunnel": "1.8.1",
"mocha": "3.0.2",
"nock": "8.0.0",
"npm-run-all": "3.0.0",
"nsp": "2.6.1",
"numeral": "1.5.3",
"open": "0.0.5",
"rimraf": "2.5.4",
"webpack": "1.13.2",
"webpack-dev-middleware": "1.6.1",
"webpack-hot-middleware": "2.12.2",
"webpack-md5-hash": "0.0.5"

node version is 10.14.1 npm version is 6.4.1

I manage to find similar issues while searching in the web but still I can’t figure it out what is the problem ??

I tried so many things like delete , reinstall ,npm install etc.

This is very frustrating. I am new to node so I guess its something small but I have no idea what.

Any advice will be appreciate

Thank you

Comments