2017-05-31 31 views
-1

私のubuntuマシンで私のAngular 2プロジェクトを実行しようとしましたが、このエラーが発生しました。奇妙なことは、5分前にうまくいきました。その間に、別のionic2プロジェクトを実行しましたが、今度は角度のあるものが次のエラーを出しています。同じようなことが別の角度2のプロジェクトで私と昨日起こった。私はノードとnpmの最新バージョンを持っています。angular2プロジェクトは実行されません

npm ERR! Linux 3.16.0-77-generic 
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "build" 
npm ERR! node v7.10.0 
npm ERR! npm v4.2.0 
npm ERR! code ELIFECYCLE 
npm ERR! errno 2 
npm ERR! [email protected] build: `tsc -p src/` 
npm ERR! Exit status 2 
npm ERR! 
npm ERR! Failed at the [email protected] build script 'tsc -p src/'. 
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 angular-quickstart package, 
npm ERR! not with npm itself. 
npm ERR! Tell the author that this fails on your system: 
npm ERR!  tsc -p src/ 
npm ERR! You can get information on how to open an issue for this project with: 
npm ERR!  npm bugs angular-quickstart 
npm ERR! Or if that isn't available, you can get their info via: 
npm ERR!  npm owner ls angular-quickstart 
npm ERR! There is likely additional logging output above. 

npm ERR! Please include the following file with any support request: 
npm ERR!  /home/user6/.npm/_logs/2017-05-31T08_12_03_705Z-debug.log 

npm ERR! Linux 3.16.0-77-generic 
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start" 
npm ERR! node v7.10.0 
npm ERR! npm v4.2.0 
npm ERR! code ELIFECYCLE 
npm ERR! errno 2 
npm ERR! [email protected] prestart: `npm run build` 
npm ERR! Exit status 2 
npm ERR! 
npm ERR! Failed at the [email protected] prestart script 'npm run build'. 
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 angular-quickstart package, 
npm ERR! not with npm itself. 
npm ERR! Tell the author that this fails on your system: 
npm ERR!  npm run build 
npm ERR! You can get information on how to open an issue for this project with: 
npm ERR!  npm bugs angular-quickstart 
npm ERR! Or if that isn't available, you can get their info via: 
npm ERR!  npm owner ls angular-quickstart 
npm ERR! There is likely additional logging output above. 

npm ERR! Please include the following file with any support request: 
npm ERR!  /home/user6/.npm/_logs/2017-05-31T08_12_03_740Z-debug.log 
+0

「npm」、「typescript」、現在使用しているバージョンを更新しましたか? –

答えて

0

問題は、プロジェクトにいくつかのコンパイルエラーがあったことです。そのため、npm startコマンドは機能しませんでした。同じ問題が発生している場合は、一時的にコンパイラエラーを解決してから、プロジェクトを実行してみてください。

関連する問題