简体   繁体   中英

Error opening Ember Serve

After installing node.js, npm, git, ember-cli, phantomjs2 on ubuntu, not able to open ember server and getting the following error:

 ~$ cd my-app ~/my-app$ ember s module.js:340 throw err; ^ Error: Cannot find module '../internal/baseEach' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:289:25) at Module.require (module.js:366:17) at require (module.js:385:17) at Object.<anonymous> (/home/naveen/my-app/node_modules/ember-cli/node_modules/lodash/collection/find.js:1:78) at Module._compile (module.js:425:26) at Object.Module._extensions..js (module.js:432:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:313:12) at Module.require (module.js:366:17) 

This usually happens when your npm install process is disrupted. You should rm -rf node_modules , npm cache clean and then do clean npm install . You might also use npm install --verbose which would also tell you what went wrong if process exits with error.

Also you can upgrade to latest version of npm using npm install -g npm .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM