我在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 ]
您應該在'package.json'中包含'start'的值,以便我們可以看到命令'npm start'實際上在運行。 – EmptyArsenal
只是爲了記錄,你是否停止以'npm stop'開始項目的上一次開始? – Hackerman
感謝您的評論,是的,我再次執行它之前停止npm。我會看到我的package.json文件 – andres