PyCharm and node out of sync

The version of node I am using in the PyCharm Terminal is v8.9.4

If I try to ng serve my project, I get the following error:

/Users/dcappiello/.nvm/versions/node/v8.9.4/bin/node /Users/dcappiello/.nvm/versions/node/v8.9.4/lib/node_modules/npm/bin/npm-cli.js run start --scripts-prepend-node-path=auto

> bluebell@1.15.3 start /Users/dcappiello/Documents/TotalSim/bluebell
> ng serve

Cannot find module './lodash'
Error: Cannot find module './lodash'
at Function.Module._resolveFilename (module.js:538:15)
at Function.Module._load (module.js:468:25)
at Module.require (module.js:587:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/Users/dcappiello/Documents/TotalSim/bluebell/node_modules/lodash/index.js:1:80)
at Module._compile (module.js:643:30)
at Object.Module._extensions..js (module.js:654:10)
at Module.load (module.js:556:32)
at tryModuleLoad (module.js:499:12)
at Function.Module._load (module.js:491:3)
npm ERR! errno 1
npm ERR! bluebell@1.15.3 start: `ng serve`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bluebell@1.15.3 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! /Users/dcappiello/.npm/_logs/2019-07-12T09_19_10_853Z-debug.log

Process finished with exit code 1

It use to work. No idea in how to fix this problem.


1 comment
Hi, Please try to run the same command from the terminal outside of PyCharm. Do you get the same result?

Please sign in to leave a comment.