[英]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: 在ubuntu上安装node.js,npm,git,ember-cli,phantomjs2之后,无法打开ember服务器并得到以下错误:
~$ 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. 当您的
npm install
过程中断时,通常会发生这种情况。 You should rm -rf node_modules
, npm cache clean
and then do clean npm install
. 您应该
rm -rf node_modules
, npm cache clean
,然后清理npm install
。 You might also use npm install --verbose
which would also tell you what went wrong if process exits with error. 您可能还会使用
npm install --verbose
,它还会告诉您如果进程退出并出错,出了什么问题。
Also you can upgrade to latest version of npm using npm install -g npm
. 您也可以使用
npm install -g npm
升级到npm的最新版本。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.