Sunday 16 April 2017

npm Angular2 quickstart error

Almost each time i reopen the quickstart file in my localhost it crashes and does not show local host anymore. I have the latest npm installed

    0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli   'C:\\Users\\Myamoto\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'run',
1 verbose cli   'build' ]
2 info using npm@4.5.0
3 info using node@v6.10.2
4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
5 info lifecycle angular-quickstart@1.0.0~prebuild: angular-quickstart@1.0.0
6 silly lifecycle angular-quickstart@1.0.0~prebuild: no script for prebuild, continuing
7 info lifecycle angular-quickstart@1.0.0~build: angular-quickstart@1.0.0
8 verbose lifecycle angular-quickstart@1.0.0~build: unsafe-perm in lifecycle true
9 verbose lifecycle angular-quickstart@1.0.0~build: PATH: C:\Users\Myamoto\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin;C:\Users\Myamoto\Desktop\quickstart\node_modules\.bin;C:\Users\Myamoto\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin;C:\Users\Myamoto\Desktop\quickstart\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)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\Brackets\command;C:\Users\Myamoto\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Python 3.5\python.exe;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files\nodejs\;C:\Users\Myamoto\Anaconda3;C:\Users\Myamoto\Anaconda3\Scripts;C:\Users\Myamoto\Anaconda3\Library\bin;C:\Users\Myamoto\Anaconda2;C:\Users\Myamoto\Anaconda2\Scripts;C:\Users\Myamoto\Anaconda2\Library\bin;C:\Users\Myamoto\AppData\Local\Microsoft\WindowsApps;C:\Users\Myamoto\AppData\Roaming\npm
10 verbose lifecycle angular-quickstart@1.0.0~build: CWD: C:\Users\Myamoto\Desktop\quickstart
11 silly lifecycle angular-quickstart@1.0.0~build: Args: [ '/d /s /c', 'tsc -p src/' ]
12 silly lifecycle angular-quickstart@1.0.0~build: Returned: code: 2  signal: null
13 info lifecycle angular-quickstart@1.0.0~build: Failed to exec build script
14 verbose stack Error: angular-quickstart@1.0.0 build: `tsc -p src/`
14 verbose stack Exit status 2
14 verbose stack     at EventEmitter.<anonymous> (C:\Users\Myamoto\AppData\Roaming\npm\node_modules\npm\lib\utils\lifecycle.js:279:16)
14 verbose stack     at emitTwo (events.js:106:13)
14 verbose stack     at EventEmitter.emit (events.js:191:7)
14 verbose stack     at ChildProcess.<anonymous> (C:\Users\Myamoto\AppData\Roaming\npm\node_modules\npm\lib\utils\spawn.js:40:14)
14 verbose stack     at emitTwo (events.js:106:13)
14 verbose stack     at ChildProcess.emit (events.js:191:7)
14 verbose stack     at maybeClose (internal/child_process.js:886:16)
14 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
15 verbose pkgid angular-quickstart@1.0.0
16 verbose cwd C:\Users\Myamoto\Desktop\quickstart
17 verbose Windows_NT 10.0.14393
18 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Myamoto\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "run" "build"
19 verbose node v6.10.2
20 verbose npm  v4.5.0
21 error code ELIFECYCLE
22 error errno 2
23 error angular-quickstart@1.0.0 build: `tsc -p src/`
23 error Exit status 2
24 error Failed at the angular-quickstart@1.0.0 build script 'tsc -p src/'.
24 error Make sure you have the latest version of node.js and npm installed.
24 error If you do, this is most likely a problem with the angular-quickstart package,
24 error not with npm itself.
24 error Tell the author that this fails on your system:
24 error     tsc -p src/
24 error You can get information on how to open an issue for this project with:
24 error     npm bugs angular-quickstart
24 error Or if that isn't available, you can get their info via:
24 error     npm owner ls angular-quickstart
24 error There is likely additional logging output above.
25 verbose exit [ 2, true ]

and 


0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli   'C:\\Users\\Myamoto\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'start' ]
2 info using npm@4.5.0
3 info using node@v6.10.2
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle angular-quickstart@1.0.0~prestart: angular-quickstart@1.0.0
6 verbose lifecycle angular-quickstart@1.0.0~prestart: unsafe-perm in lifecycle true
7 verbose lifecycle angular-quickstart@1.0.0~prestart: PATH: C:\Users\Myamoto\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin;C:\Users\Myamoto\Desktop\quickstart\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)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\Brackets\command;C:\Users\Myamoto\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Python 3.5\python.exe;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files\nodejs\;C:\Users\Myamoto\Anaconda3;C:\Users\Myamoto\Anaconda3\Scripts;C:\Users\Myamoto\Anaconda3\Library\bin;C:\Users\Myamoto\Anaconda2;C:\Users\Myamoto\Anaconda2\Scripts;C:\Users\Myamoto\Anaconda2\Library\bin;C:\Users\Myamoto\AppData\Local\Microsoft\WindowsApps;C:\Users\Myamoto\AppData\Roaming\npm
8 verbose lifecycle angular-quickstart@1.0.0~prestart: CWD: C:\Users\Myamoto\Desktop\quickstart
9 silly lifecycle angular-quickstart@1.0.0~prestart: Args: [ '/d /s /c', 'npm run build' ]
10 silly lifecycle angular-quickstart@1.0.0~prestart: Returned: code: 2  signal: null
11 info lifecycle angular-quickstart@1.0.0~prestart: Failed to exec prestart script
12 verbose stack Error: angular-quickstart@1.0.0 prestart: `npm run build`
12 verbose stack Exit status 2
12 verbose stack     at EventEmitter.<anonymous> (C:\Users\Myamoto\AppData\Roaming\npm\node_modules\npm\lib\utils\lifecycle.js:279: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:\Users\Myamoto\AppData\Roaming\npm\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:886:16)
12 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
13 verbose pkgid angular-quickstart@1.0.0
14 verbose cwd C:\Users\Myamoto\Desktop\quickstart
15 verbose Windows_NT 10.0.14393
16 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Myamoto\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "start"
17 verbose node v6.10.2
18 verbose npm  v4.5.0
19 error code ELIFECYCLE
20 error errno 2
21 error angular-quickstart@1.0.0 prestart: `npm run build`
21 error Exit status 2
22 error Failed at the angular-quickstart@1.0.0 prestart script 'npm run build'.
22 error Make sure you have the latest version of node.js and npm installed.
22 error If you do, this is most likely a problem with the angular-quickstart package,
22 error not with npm itself.
22 error Tell the author that this fails on your system:
22 error     npm run build
22 error You can get information on how to open an issue for this project with:
22 error     npm bugs angular-quickstart
22 error Or if that isn't available, you can get their info via:
22 error     npm owner ls angular-quickstart
22 error There is likely additional logging output above.
23 verbose exit [ 2, true ]

Any Ideas. I don't want to create the project from scatch each time



via Muten_Roshi

No comments:

Post a Comment