2017-09-01 147 views
0

我在Ubuntu上使用Node v4.2.6和npm v3.5.2,我從github克隆我的proyect並安裝所有模塊。當我做npm開始它的運行正常,但是當我嘗試再次運行它開始崩潰並且我發現使它再次工作的唯一方法是重新克隆該項目。 這是一個罕見而虛擬的問題,我認爲,有人可以幫助我嗎?請原諒我的英語不好,這裏是NPM-錯誤的debug.log:'npm start'錯誤

17 error Linux 4.4.0-92-generic

18 error argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "lite"

19 error node v4.2.6

20 error npm v3.5.2

21 error code ELIFECYCLE

22 error [email protected] lite: lite-server

22 error Exit status 1

23 error Failed at the [email protected] lite script 'lite-server'.

23 error Make sure you have the latest version of node.js and npm installed.

23 error If you do, this is most likely a problem with the firstApp-client package,

23 error not with npm itself.

23 error Tell the author that this fails on your system:

23 error lite-server

23 error You can get information on how to open an issue for this project with:

23 error npm bugs firstApp-client

23 error Or if that isn't available, you can get their info via:

23 error npm owner ls firstApp-client

23 error There is likely additional logging output above.

24 verbose exit [ 1, true ]

+0

您應該在'package.json'中包含'start'的值,以便我們可以看到命令'npm start'實際上在運行。 – EmptyArsenal

+0

只是爲了記錄,你是否停止以'npm stop'開始項目的上一次開始? – Hackerman

+0

感謝您的評論,是的,我再次執行它之前停止npm。我會看到我的package.json文件 – andres

回答

0

我不知道爲什麼,但它似乎是這個問題是中的NodeJS的版本不兼容。 我運行:

$須藤NPM緩存清理-f

$須藤NPM安裝-gn

$須藤ň穩定

$須藤LN -sf在/ usr /本地/ N /版本/ node // bin/node/usr/bin/nodejs

而且全部解決了。感謝您的意見

相關問題