2016-12-02 6 views
0

작동하는 노트북에 각도 2 응용 프로그램이 있습니다. 그러나 팀원 복제본에 git이 있으면 npm start에 이상한 오류가 발생합니다. 그는 node.js를 설치 했으므로 파일은 동일합니다. 이론적으로각도 2 npm 시작이 작동하지 않습니다. 종료 상태 1

npm ERR! Windows_NT 6.3.9600 
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\ 
node_modules\\npm\\bin\\npm-cli.js" "start" 
npm ERR! node v7.2.0 
npm ERR! npm v3.10.9 
npm ERR! code ELIFECYCLE 
npm ERR! [email protected] start: `tsc && concurrently "tsc -w" "lite-ser 
ver" ` 
npm ERR! Exit status 1 
npm ERR! 
npm ERR! Failed at the [email protected] start script 'tsc && concurrentl 
y "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 angular-quickstart pa 
ckage, 
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 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!  C:\Users\Timo\Desktop\OOSE Project\Projects\Button_for_Json\npm-deb 
ug.log 

C:\Users\USERNAME\Desktop\OOSE Project\Projects\Button_for_Json>npm 
+0

"start": "tsc && concurrently \"npm run tsc:w\" \"npm run lite\" " 

에서 package.json에 시작 필드를 변경해야합니다 당신이 두 시스템에 노드/고궁 박물원의 동일한 버전이 있습니까? 'npm start'를 호출하기 전에 두 번째 기계에서'npm install'을 호출 했습니까? – osechet

+0

두 번째 시스템에는 최신 버전이 있습니다. – Nick

답변

0

NPM은가 package.json 적어도 마지막으로 각 2 버전에서,를 제공 NG 를 시작으로 이동합니다 시작합니다 여기에 오류 메시지입니다.

"scripts": { 
    "start": "ng serve", 

패키지에 있습니다 .json?

어쨌든 here으로 보입니다. 유용 할 수도 있습니다

+0

"start": "tsc && concurrently"npm은 tsc : w \ "\"npm run lite \ ""을 실행합니다. 나는 너를해볼거야 – Nick

+0

그게 작동하지 않습니다 그는 다른 오류를 제공에 대한 불평을 제공합니다 – Nick

+0

그때 앵글 - 클라이가 설치되어 있지 않을 수도 있습니다. – kimy82

0

this과 비슷한 문제가있는 것 같습니다. 그들의 해결책을 시도해 볼 수 있습니까?

Basicly 당신이

"start": "concurrently \"npm run tsc:w\" \"npm run lite\" " 
+0

나는 이미 작동하지 않는다고 시도했다. – Nick