我打开unlink后,npm start没有工作

时间:2016-12-14 23:24:26

标签: node.js ember.js 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 gooey一直出错,例如tell author that ember server failednpm link

1 个答案:

答案 0 :(得分:1)

解决方案:

选项1:

首先执行npm install,以便安装所需的一切 然后npm start,然后npm unlink将重新开始工作。

选项2:

如果要取消关联,请执行以下操作: npm update npm start npm install 这也应该有效。 如果您遇到问题,请在npm start之前再次尝试var myValue = 9; // Loop to find numbers that are multiples of nine that are less than 100 while (myValue++ < 100) { if (myValue % 9 === 0) { document.write(myValue + '<br/><br/>'); } }