2017-10-27 13 views
0

시도했습니다 Angular2 QuickStart. 이것을 실행하기 위해서 나는 npm start을 사용했다. 처음에는 잘 작동합니다. 그러나 그것을 내가이 발생 npm start을 사용하여 실행하려고하면 다음 날 같은 오류 :Angular2 QuickStart npm 시작이 다음 날에 작동하지 않습니다.

0 info it worked if it ends with ok 
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe', 
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js', 
1 verbose cli 'start' ] 
2 info using [email protected] 
3 info using [email protected] 
4 verbose run-script [ 'prestart', 'start', 'poststart' ] 
5 info lifecycle [email protected]~prestart: [email protected] 
6 verbose lifecycle [email protected]~prestart: unsafe-perm in lifecycle true 
7 verbose lifecycle [email protected]~prestart: PATH: C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin;C:\wamp64\www\prakash_angular3\node_modules\.bin;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Skype\Phone\;C:\wamp64\bin\php\php5.6.25;C:\ProgramData\ComposerSetup\bin;C:\Program Files\nodejs\;C:\Users\vis-2113\AppData\Roaming\npm 
8 verbose lifecycle [email protected]~prestart: CWD: C:\wamp64\www\prakash_angular3 
9 silly lifecycle [email protected]~prestart: Args: [ '/d /s /c', 'npm run build' ] 
10 silly lifecycle [email protected]~prestart: Returned: code: 1 signal: null 
11 info lifecycle [email protected]~prestart: Failed to exec prestart script 
12 verbose stack Error: [email protected] prestart: `npm run build` 
12 verbose stack Exit status 1 
12 verbose stack  at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\lifecycle.js:255:16) 
12 verbose stack  at emitTwo (events.js:106:13) 
12 verbose stack  at EventEmitter.emit (events.js:191:7) 
12 verbose stack  at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\spawn.js:40:14) 
12 verbose stack  at emitTwo (events.js:106:13) 
12 verbose stack  at ChildProcess.emit (events.js:191:7) 
12 verbose stack  at maybeClose (internal/child_process.js:920:16) 
12 verbose stack  at Process.ChildProcess._handle.onexit (internal/child_process.js:230:5) 
13 verbose pkgid [email protected] 
14 verbose cwd C:\wamp64\www\prakash_angular3 
15 error Windows_NT 6.1.7601 
16 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start" 
17 error node v6.11.4 
18 error npm v3.10.10 
19 error code ELIFECYCLE 
20 error [email protected] prestart: `npm run build` 
20 error Exit status 1 
21 error Failed at the [email protected] prestart script 'npm run build'. 
21 error Make sure you have the latest version of node.js and npm installed. 
21 error If you do, this is most likely a problem with the angular-quickstart package, 
21 error not with npm itself. 
21 error Tell the author that this fails on your system: 
21 error  npm run build 
21 error You can get information on how to open an issue for this project with: 
21 error  npm bugs angular-quickstart 
21 error Or if that isn't available, you can get their info via: 
21 error  npm owner ls angular-quickstart 
21 error There is likely additional logging output above. 
22 verbose exit [ 1, true ] 

가 어떻게이 문제를 해결할 수 있습니까?

답변

0

열기 2 퀵 스타트 디렉토리에있는 cmd windows.

창 1 : 다음

npm run build:watch 

,

창 2 : 그것은 브라우저와 일에 열기 예상되므로

npm run serve 

.