繁体   English   中英

我执行npm取消链接后npm start不起作用

[英]npm start doesn't work after i do npm unlink

npm ERR! Darwin 15.6.0
npm ERR! argv "/Users/myName/.nvm/versions/node/v5.12.0/bin/node" "/Users/myName/.nvm/versions/node/v5.12.0/bin/npm" "start"
npm ERR! node v5.12.0
npm ERR! npm  v3.8.6
npm ERR! code ELIFECYCLE
npm ERR! appName@1.5.1 start: `ember server`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the appName start script 'ember server'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the appName package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     ember server
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs appName
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls appName
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/myName/Documents/Dev/ember-project-name/npm-debug

我将我的一个项目gooey链接到另一个项目: ember ,现在我想取消链接它们,所以我做了npm unlink然后npm start无论如何都没有用。 我尝试过的事情: npm install几次, bower install几次, rm -rf node_modules rm -rf bower_components npm install多次npm start不断给出错误,例如can't find some file in gooeytell author that ember server failed

解决方案:

选项1:

首先执行npm link以便它安装所需的所有内容,然后执行npm install ,然后npm start将再次开始工作。

选项2:

如果要取消链接,请执行以下操作: npm unlink npm update npm start ,它也应该起作用。 如果遇到问题, npm installnpm start之前再次尝试npm install

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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