i just installed the npm to practise angular 2 but npm doesnt start as expected.
guruteja90 opened this issue · 0 comments
Error occured when executing command: npm run serveError: spawn cmd.exe ENOENT at _errnoException (util.js:1022:11)
This is the log file:
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 npm@5.6.0
3 info using node@v8.9.4
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle angular-quickstart@1.0.0prestart: angular-quickstart@1.0.0prestart: unsafe-perm in lifecycle true
6 verbose lifecycle angular-quickstart@1.0.0
7 verbose lifecycle angular-quickstart@1.0.0prestart: PATH: C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;D:\Project\Demo\node_modules.bin;C:\Program Files\nodejs;C:\Program Files\Java\jdk1.8.0_101\bin;C:\Program Files\Intel\WiFi\bin;C:\Program Files\Common Files\Intel\WirelessCommon;C:\Users\GuruTeja\AppData\Roaming\npm;C:\Program Files\Microsoft VS Code\binprestart: CWD: D:\Project\Demo
8 verbose lifecycle angular-quickstart@1.0.0
9 silly lifecycle angular-quickstart@1.0.0prestart: Args: [ '/d /s /c', 'npm run build' ]prestart: Returned: code: 0 signal: null
10 silly lifecycle angular-quickstart@1.0.0
11 info lifecycle angular-quickstart@1.0.0start: angular-quickstart@1.0.0start: unsafe-perm in lifecycle true
12 verbose lifecycle angular-quickstart@1.0.0
13 verbose lifecycle angular-quickstart@1.0.0start: PATH: C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;D:\Project\Demo\node_modules.bin;C:\Program Files\nodejs;C:\Program Files\Java\jdk1.8.0_101\bin;C:\Program Files\Intel\WiFi\bin;C:\Program Files\Common Files\Intel\WirelessCommon;C:\Users\GuruTeja\AppData\Roaming\npm;C:\Program Files\Microsoft VS Code\binstart: CWD: D:\Project\Demo
14 verbose lifecycle angular-quickstart@1.0.0
15 silly lifecycle angular-quickstart@1.0.0start: Args: [ '/d /s /c',start: Returned: code: 1 signal: null
15 silly lifecycle 'concurrently "npm run build:watch" "npm run serve"' ]
16 silly lifecycle angular-quickstart@1.0.0
17 info lifecycle angular-quickstart@1.0.0~start: Failed to exec start script
18 verbose stack Error: angular-quickstart@1.0.0 start: concurrently "npm run build:watch" "npm run serve"
18 verbose stack Exit status 1
18 verbose stack at EventEmitter. (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:285:16)
18 verbose stack at emitTwo (events.js:126:13)
18 verbose stack at EventEmitter.emit (events.js:214:7)
18 verbose stack at ChildProcess. (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
18 verbose stack at emitTwo (events.js:126:13)
18 verbose stack at ChildProcess.emit (events.js:214:7)
18 verbose stack at maybeClose (internal/child_process.js:925:16)
18 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
19 verbose pkgid angular-quickstart@1.0.0
20 verbose cwd D:\Project\Demo
21 verbose Windows_NT 6.3.9600
22 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "start"
23 verbose node v8.9.4
24 verbose npm v5.6.0
25 error code ELIFECYCLE
26 error errno 1
27 error angular-quickstart@1.0.0 start: concurrently "npm run build:watch" "npm run serve"
27 error Exit status 1
28 error Failed at the angular-quickstart@1.0.0 start script.
28 error This is probably not a problem with npm. There is likely additional logging output above.
29 verbose exit [ 1, true ]
Im not sure why im unable to start the npm. i have set the path aswell to "C:\Program Files\nodejs"