Getting npm build error prestart: `npm run build`

373 views
Skip to first unread message

Raviteja Giduturi

unread,
Apr 9, 2017, 10:56:15 AM4/9/17
to Angular and AngularJS discussion
Hi,

I'm getting below error for npm start command, i have tried npm clear cache, npm install etc... but didn't resolved. Can you guyshelp me to fix this issue?





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 n...@4.4.4
3 info using no...@v6.3.0
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle angular-q...@1.0.0~prestart: angular-q...@1.0.0
6 verbose lifecycle angular-q...@1.0.0~prestart: unsafe-perm in lifecycle true
7 verbose lifecycle angular-q...@1.0.0~prestart: PATH: C:\Users\rgiduturi\AppData\Roaming\nvm\v6.3.0\node_modules\npm\bin\node-gyp-bin;C:\Raviteja@CiQ\Personal\Education\Web\AngularJS\Angular2\quickstart-master\node_modules\.bin;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\RSA SecurID Token Common;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Enterprise Vault\EVClient\;C:\apache-maven-3.0.5\bin;C:\Program Files\Java\jdk1.8.0\bin;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\gradle-2.14\bin;C:\Program Files\SlikSvn\bin;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\Git\cmd;C:\Program Files (x86)\Windows Kits\8.0\Windows Performance Toolkit\;C:\Users\rgiduturi\AppData\Roaming\nvm;C:\Program Files\nodejs;C:\Program Files (x86)\Box\Box Edit\;C:\Users\rgiduturi\AppData\Roaming\npm;C:\Program Files\Docker Toolbox;C:\Program Files (x86)\Microsoft VS Code\bin;C:\Users\rgiduturi\AppData\Roaming\nvm;C:\Program Files\nodejs
8 verbose lifecycle angular-q...@1.0.0~prestart: CWD: C:\Raviteja@CiQ\Personal\Education\Web\AngularJS\Angular2\quickstart-master
9 silly lifecycle angular-q...@1.0.0~prestart: Args: [ '/d /s /c', 'npm run build' ]
10 silly lifecycle angular-q...@1.0.0~prestart: Returned: code: 2  signal: null
11 info lifecycle angular-q...@1.0.0~prestart: Failed to exec prestart script
12 verbose stack Error: angular-q...@1.0.0 prestart: `npm run build`
12 verbose stack Exit status 2
12 verbose stack     at EventEmitter.<anonymous> (C:\Users\rgiduturi\AppData\Roaming\nvm\v6.3.0\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\rgiduturi\AppData\Roaming\nvm\v6.3.0\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:852:16)
12 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)
13 verbose pkgid angular-q...@1.0.0
14 verbose cwd C:\Raviteja@CiQ\Personal\Education\Web\AngularJS\Angular2\quickstart-master
15 verbose Windows_NT 6.1.7601
16 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start"
17 verbose node v6.3.0
18 verbose npm  v4.4.4
19 error code ELIFECYCLE
20 error errno 2
21 error angular-q...@1.0.0 prestart: `npm run build`
21 error Exit status 2
22 error Failed at the angular-q...@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 ]

Sander Elias

unread,
Apr 9, 2017, 12:30:29 PM4/9/17
to Angular and AngularJS discussion
You need st least nodejs version 6.9. Do upgrade your version, and repeat your steps.

Regards,
Sander

Reply all
Reply to author
Forward
0 new messages