2016-08-30 1 views
0

私は多くのことを試しましたが、これはまだ動作していません。私はnpm startコマンドを実行しようとすると、それは私に、このエラーを与える:npm ubuntuでのnpmの致命的なエラー、何か考えられますか?

 
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start" 
npm ERR! node v6.4.0 
npm ERR! npm v3.10.6 
npm ERR! file sh 
npm ERR! code ELIFECYCLE 
npm ERR! errno ENOENT 
npm ERR! syscall spawn 
npm ERR! [email protected] start: `tsc && concurrently "tsc -w" "lite-server" ` 
npm ERR! spawn ENOENT 
npm ERR! 
npm ERR! Failed at the [email protected] start script 'tsc && concurrently "tsc -w" "lite-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 angular2-quickstart package, 
npm ERR! not with npm itself. 
npm ERR! Tell the author that this fails on your system: 
npm ERR!  tsc && concurrently "tsc -w" "lite-server" 
npm ERR! You can get information on how to open an issue for this project with: 
npm ERR!  npm bugs angular2-quickstart 
npm ERR! Or if that isn't available, you can get their info via: 
npm ERR!  npm owner ls angular2-quickstart 
npm ERR! There is likely additional logging output above. 
npm WARN Local package.json exists, but node_modules missing, did you mean to install? 

npm ERR! Please include the following file with any support request: 
npm ERR!  /home/gg/Scrivania/my-proj/newangular/npm-debug.log 
+0

TSCを実行しているときにそれが起こる:確かに、次のように、NPMの出力をチェックすることは慎重にをインストールし、node_modulesを削除し、再インストール?そうであれば、これをタイプスクリプトのためにタグ付けするかもしれません。実際には私はそれがangular2のためだと見ています –

+1

'npm install'を実行しましたか? –

+0

はい、しかし、たびにthatsエラーを出す、私はインストールして、何もインストールしていない。 –

答えて

0

おそらく、あなたは、いくつかの不足しているピアの依存関係を持っています。 npmバージョン3以降では、必要なピア依存関係を手動でインストールする必要があります。

npmを実行すると、警告メッセージが表示され、がインストールされます。

cd /home/gg/Scrivania/my-proj/newangular 
rm -rf node_modules 
npm install 
関連する問題