Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spawn npm ENOENT #1

Closed
samikhaled opened this issue Sep 1, 2016 · 19 comments
Closed

spawn npm ENOENT #1

samikhaled opened this issue Sep 1, 2016 · 19 comments

Comments

@samikhaled
Copy link

d:\AngularJS\Tutorials\New\Apps\angular2-rollup-starter>npm run serve

angular2-rollup-starter@1.0.0 serve d:\AngularJS\Tutorials\New\Apps\angular2-rollup-starter
node ./scripts/server.js

Starting initial build...
events.js:160
throw er; // Unhandled 'error' event
^

Error: spawn npm ENOENT
at exports._errnoException (util.js:1008:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:182:32)
at onErrorNT (internal/child_process.js:348:16)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)

npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\Program Files\nodejs\node.exe" "D:\Apps\NodeData\npm\node_modules\npm\bin\npm-cli.js" "run" "serve"
npm ERR! node v6.3.0
npm ERR! npm v3.10.6
npm ERR! code ELIFECYCLE
npm ERR! angular2-rollup-starter@1.0.0 serve: node ./scripts/server.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the angular2-rollup-starter@1.0.0 serve script 'node ./scripts/server.js'.
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 angular2-rollup-starter package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node ./scripts/server.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs angular2-rollup-starter
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls angular2-rollup-starter
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! d:\AngularJS\Tutorials\New\Apps\angular2-rollup-starter\npm-debug.log

@jkuri
Copy link
Owner

jkuri commented Sep 1, 2016

Thanks for notice. Can you please check again?

@samikhaled
Copy link
Author

I installed the latest project update
and I have the same error.

@jkuri
Copy link
Owner

jkuri commented Sep 9, 2016

@samikhaled on Windows maybe?

@RedForza
Copy link

Got the same issue. On Windows 10.

@jkuri
Copy link
Owner

jkuri commented Sep 19, 2016

Thanks for reporting, let me check that on Windows and I'll make a fix asap.

@jkuri
Copy link
Owner

jkuri commented Sep 19, 2016

311bf28

@jkuri jkuri closed this as completed Sep 19, 2016
@VIPINSAINI17
Copy link

Hi , I am facing below issue while running on windows 10.
I like your article .. it fit with my requirements , however unfortunately I am not able to run locally

Error: spawn npm ENOENT
at exports._errnoException (util.js:1008:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:182:32)
at onErrorNT (internal/child_process.js:348:16)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)

@VIPINSAINI17
Copy link

I appreciate if you help me to get it fixed

@jkuri
Copy link
Owner

jkuri commented Dec 8, 2016

can you please provide full error?

@VIPINSAINI17
Copy link

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 'run',
1 verbose cli 'roll' ]
2 info using npm@3.10.8
3 info using node@v6.9.1
4 verbose run-script [ 'preroll', 'roll', 'postroll' ]
5 info lifecycle angular2-rollup-starter@1.0.0preroll: angular2-rollup-starter@1.0.0
6 silly lifecycle angular2-rollup-starter@1.0.0
preroll: no script for preroll, continuing
7 info lifecycle angular2-rollup-starter@1.0.0roll: angular2-rollup-starter@1.0.0
8 verbose lifecycle angular2-rollup-starter@1.0.0
roll: unsafe-perm in lifecycle true
9 verbose lifecycle angular2-rollup-starter@1.0.0roll: PATH: C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin;C:\Pluralsight Trainings\AngularJS2.0\ng2-file-manager-master\node_modules.bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\Common Files\lenovo\easyplussdk\bin;C:\Program Files\Intel\WiFi\bin;C:\Program Files\Common Files\Intel\WirelessCommon;C:\Program Files\nodejs;C:\Program Files\Git\cmd;C:\Users\VIPINK\AppData\Local\Microsoft\WindowsApps;;C:\Program Files (x86)\Microsoft VS Code\bin;C:\Users\VIPINK\AppData\Roaming\npm
10 verbose lifecycle angular2-rollup-starter@1.0.0
roll: CWD: C:\Pluralsight Trainings\AngularJS2.0\ng2-file-manager-master
11 silly lifecycle angular2-rollup-starter@1.0.0roll: Args: [ '/d /s /c', 'node ./scripts/cmd.js dist' ]
12 silly lifecycle angular2-rollup-starter@1.0.0
roll: Returned: code: 1 signal: null
13 info lifecycle angular2-rollup-starter@1.0.0~roll: Failed to exec roll script
14 verbose stack Error: angular2-rollup-starter@1.0.0 roll: node ./scripts/cmd.js dist
14 verbose stack Exit status 1
14 verbose stack at EventEmitter. (C:\Program Files\nodejs\node_modules\npm\lib\utils\lifecycle.js:255: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. (C:\Program Files\nodejs\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:877:16)
14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
15 verbose pkgid angular2-rollup-starter@1.0.0
16 verbose cwd C:\Pluralsight Trainings\AngularJS2.0\ng2-file-manager-master
17 error Windows_NT 10.0.14393
18 error argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "run" "roll"
19 error node v6.9.1
20 error npm v3.10.8
21 error code ELIFECYCLE
22 error angular2-rollup-starter@1.0.0 roll: node ./scripts/cmd.js dist
22 error Exit status 1
23 error Failed at the angular2-rollup-starter@1.0.0 roll script 'node ./scripts/cmd.js dist'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the angular2-rollup-starter package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error node ./scripts/cmd.js dist
23 error You can get information on how to open an issue for this project with:
23 error npm bugs angular2-rollup-starter
23 error Or if that isn't available, you can get their info via:
23 error npm owner ls angular2-rollup-starter
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]

@VIPINSAINI17
Copy link

when I have performed - npm run roll

@jkuri
Copy link
Owner

jkuri commented Dec 8, 2016

can you try to change typescript version to match exact 2.0.10 in package.json, then remove node_modules and install it again.

@VIPINSAINI17
Copy link

angular2-rollup-starter@1.0.0 roll C:\Pluralsight Trainings\AngularJS2.0\ng2-file-manager-master
node ./scripts/cmd.js dist

Prepairing project for production, please wait...

C:\Pluralsight Trainings\AngularJS2.0\ng2-file-manager-master\dist deleted.
/public dir successfully copied to dist.
index.html generated at C:\Pluralsight Trainings\AngularJS2.0\ng2-file-manager-master\dist\index.html
SASS compiled in 71ms
events.js:160
throw er; // Unhandled 'error' event
^

Error: spawn rollup ENOENT
at exports._errnoException (util.js:1026:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
at onErrorNT (internal/child_process.js:359:16)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)

npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "run" "roll"
npm ERR! node v6.9.1
npm ERR! npm v3.10.8
npm ERR! code ELIFECYCLE
npm ERR! angular2-rollup-starter@1.0.0 roll: node ./scripts/cmd.js dist
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the angular2-rollup-starter@1.0.0 roll script 'node ./scripts/cmd.js dist'.
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 angular2-rollup-starter package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:

@VIPINSAINI17
Copy link

I have installed typescript@2.0.10 & deleted node_modules , however I still get same error.

@jkuri
Copy link
Owner

jkuri commented Dec 8, 2016 via email

@VIPINSAINI17
Copy link

I have tried all the options ..no luck yet.... Can you please help..? I appreciate your help

@jkuri
Copy link
Owner

jkuri commented Dec 9, 2016

Please check last message.

@VIPINSAINI17
Copy link

I have taken latest code from repo ...very latest .. I am using given version - " Latest commit 246aaf6 on Sep 4"

@jkuri
Copy link
Owner

jkuri commented Dec 9, 2016

Looks like we are not talking about same projects, last commit from this project is Dec 5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants