Npm bugs ionic-hello-world


#1

I got this error after I run ionic serve and then after 10 seconds, it will display :

E:\ionic\MyApp\node_modules\tiny-lr\src\server.js:266
console.error(’… Uhoh. Got error %s …’, e.message);
^

TypeError: Cannot read property ‘message’ of undefined
at Server.error (E:\ionic\MyApp\node_modules\tiny-lr\src\server.js:266:52)
at Socket. (E:\ionic\MyApp\node_modules\tiny-lr\src\server.js:217
:22)
at emitOne (events.js:101:20)
at Socket.emit (events.js:188:7)
at onwriteError (_stream_writable.js:344:10)
at onwrite (_stream_writable.js:362:5)
at fireErrorCallbacks (net.js:471:13)
at Socket._destroy (net.js:512:3)
at Socket._writeGeneric (net.js:715:17)
at Socket._write (net.js:734:8)

npm ERR! Windows_NT 6.1.7601
npm ERR! argv “C:\Program Files\nodejs\node.exe” “C:\Users\Account
\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js” “run” “ionic:
serve” “–” “–v2” “–address” “0.0.0.0” “–port” “8100” “–livereload-port” "35
729"
npm ERR! node v7.4.0
npm ERR! npm v4.1.2
npm ERR! code ELIFECYCLE
npm ERR! ionic-hello-world@ ionic:serve: ionic-app-scripts serve "--v2" "--addr ess" "0.0.0.0" "--port" "8100" "--livereload-port" "35729"
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ionic-hello-world@ ionic:serve script ‘ionic-app-scripts
serve “–v2” “–address” “0.0.0.0” “–port” “8100” “–livereload-port” “35729”’.

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 ionic-hello-world pac
kage,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! ionic-app-scripts serve “–v2” “–address” “0.0.0.0” “–port” “8100
” “–livereload-port” "35729"
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs ionic-hello-world
npm ERR! Or if that isn’t available, you can get their info via:
npm ERR! npm owner ls ionic-hello-world
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! E:\ionic\MyApp\npm-debug.log

And here’s 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:\Users\Account\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js’,
1 verbose cli ‘run’,
1 verbose cli ‘ionic:serve’,
1 verbose cli ‘–’,
1 verbose cli ‘–v2’,
1 verbose cli ‘–address’,
1 verbose cli ‘0.0.0.0’,
1 verbose cli ‘–port’,
1 verbose cli ‘8100’,
1 verbose cli ‘–livereload-port’,
1 verbose cli ‘35729’ ]
2 info using npm@4.1.2
3 info using node@v7.4.0
4 verbose run-script [ ‘preionic:serve’, ‘ionic:serve’, ‘postionic:serve’ ]
5 info lifecycle ionic-hello-world@~preionic:serve: ionic-hello-world@
6 silly lifecycle ionic-hello-world@~preionic:serve: no script for preionic:serve, continuing
7 info lifecycle ionic-hello-world@~ionic:serve: ionic-hello-world@
8 verbose lifecycle ionic-hello-world@~ionic:serve: unsafe-perm in lifecycle true
9 verbose lifecycle ionic-hello-world@~ionic:serve: PATH: C:\Users\Account\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin;E:\ionic\MyApp\node_modules.bin;C:\Users\Account\AppData\Roaming\npm;C:\Program Files\nodejs;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\QuickTime\QTSystem;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 (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE;c:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn;C:\Users\Account.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm;C:\Program Files\Git\cmd;C:\Program Files (x86)\Skype\Phone;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\MySQL\MySQL Fabric 1.5 & MySQL Utilities 1.5;C:\Program Files (x86)\MySQL\MySQL Fabric 1.5 & MySQL Utilities 1.5\Doctrine extensions for PHP;C:\xampp\php;C:\ProgramData\ComposerSetup\bin;C:\Program Files\nodejs;;C:\Users\Account\AppData\Local\Code\bin;C:\Program Files (x86)\Google\google_appengine;C:\Program Files\Java\jdk1.8.0_25\bin;C:\apache-ant-1.9.6\bin;C:\Program Files (x86)\Android\android-sdk\tools;C:\Program Files (x86)\Android\android-sdk\platform-tools;C:\Users\Account\AppData\Roaming\Composer\vendor\bin;C:\Users\Account\AppData\Roaming\npm
10 verbose lifecycle ionic-hello-world@~ionic:serve: CWD: E:\ionic\MyApp
11 silly lifecycle ionic-hello-world@~ionic:serve: Args: [ ‘/d /s /c’,
11 silly lifecycle ‘ionic-app-scripts serve “–v2” “–address” “0.0.0.0” “–port” “8100” “–livereload-port” “35729”’ ]
12 silly lifecycle ionic-hello-world@~ionic:serve: Returned: code: 1 signal: null
13 info lifecycle ionic-hello-world@~ionic:serve: Failed to exec ionic:serve script
14 verbose stack Error: ionic-hello-world@ ionic:serve: ionic-app-scripts serve "--v2" "--address" "0.0.0.0" "--port" "8100" "--livereload-port" "35729"
14 verbose stack Exit status 1
14 verbose stack at EventEmitter. (C:\Users\Account\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. (C:\Users\Account\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:885:16)
14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
15 verbose pkgid ionic-hello-world@
16 verbose cwd E:\ionic\MyApp
17 error Windows_NT 6.1.7601
18 error argv “C:\Program Files\nodejs\node.exe” “C:\Users\Account\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js” “run” “ionic:serve” “–” “–v2” “–address” “0.0.0.0” “–port” “8100” “–livereload-port” "35729"
19 error node v7.4.0
20 error npm v4.1.2
21 error code ELIFECYCLE
22 error ionic-hello-world@ ionic:serve: ionic-app-scripts serve "--v2" "--address" "0.0.0.0" "--port" "8100" "--livereload-port" "35729"
22 error Exit status 1
23 error Failed at the ionic-hello-world@ ionic:serve script ‘ionic-app-scripts serve “–v2” “–address” “0.0.0.0” “–port” “8100” “–livereload-port” “35729”’.
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 ionic-hello-world package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error ionic-app-scripts serve “–v2” “–address” “0.0.0.0” “–port” “8100” “–livereload-port” "35729"
23 error You can get information on how to open an issue for this project with:
23 error npm bugs ionic-hello-world
23 error Or if that isn’t available, you can get their info via:
23 error npm owner ls ionic-hello-world
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]

What I have done:

  • Uninstall and reinstall the Node Js
  • Restart PC
  • Uninstall cordova and delete the folder in user folder.
  • Uninstall ionic
  • Remove node_modules in app folder and run npm install.
    and still get the error :frowning:

Kindly your assist…


#2

same error I am facing from last week, no solution find yet.


#3

I just reinstall my Windows. and it works LOL :laughing:


#4

I am facing the same error.
Any help?


#5

Same Error I Can’t make anything please help me


#6

Could you post your specific, complete error output please?


#7

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 ‘ionic:serve’,
1 verbose cli ‘–’,
1 verbose cli ‘–v2’,
1 verbose cli ‘–address’,
1 verbose cli ‘0.0.0.0’,
1 verbose cli ‘–port’,
1 verbose cli ‘8100’,
1 verbose cli ‘–livereload-port’,
1 verbose cli ‘35729’ ]
2 info using npm@3.10.10
3 info using node@v6.10.3
4 verbose run-script [ ‘preionic:serve’, ‘ionic:serve’, ‘postionic:serve’ ]
5 info lifecycle ionic-hello-world@0.0.0~preionic:serve: ionic-hello-world@0.0.0
6 silly lifecycle ionic-hello-world@0.0.0~preionic:serve: no script for preionic:serve, continuing
7 info lifecycle ionic-hello-world@0.0.0~ionic:serve: ionic-hello-world@0.0.0
8 verbose lifecycle ionic-hello-world@0.0.0~ionic:serve: unsafe-perm in lifecycle true
9 verbose lifecycle ionic-hello-world@0.0.0~ionic:serve: PATH: C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin;D:\ANDROID_PROJECT\IonicProjects\gdgAbidjanApp\node_modules.bin;C:\Users\MrMagloirE\AppData\Roaming\npm;C:\Program Files\nodejs;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files\Microsoft\Web Platform Installer;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0;C:\Program Files\Microsoft SQL Server\110\Tools\Binn;C:\Program Files (x86)\Windows Kits\8.0\Windows Performance Toolkit;C:\Program Files (x86)\Brackets\command;C:\wamp\bin\php\php5.5.12;C:\ProgramData\ComposerSetup\bin;C:\Program Files\Git\cmd;C:\Program Files\nodejs;C:\Program Files (x86)\Microsoft VS Code\bin;C:\Users\MrMagloirE\AppData\Roaming\Composer\vendor\bin;C:\Users\MrMagloirE\AppData\Roaming\npm
10 verbose lifecycle ionic-hello-world@0.0.0~ionic:serve: CWD: D:\ANDROID_PROJECT\IonicProjects\gdgAbidjanApp
11 silly lifecycle ionic-hello-world@0.0.0~ionic:serve: Args: [ ‘/d /s /c’,
11 silly lifecycle ‘ionic-app-scripts serve “–v2” “–address” “0.0.0.0” “–port” “8100” “–livereload-port” “35729”’ ]
12 silly lifecycle ionic-hello-world@0.0.0~ionic:serve: Returned: code: 1 signal: null
13 info lifecycle ionic-hello-world@0.0.0~ionic:serve: Failed to exec ionic:serve script
14 verbose stack Error: ionic-hello-world@0.0.0 ionic:serve: ionic-app-scripts serve "--v2" "--address" "0.0.0.0" "--port" "8100" "--livereload-port" "35729"
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:886:16)
14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
15 verbose pkgid ionic-hello-world@0.0.0
16 verbose cwd D:\ANDROID_PROJECT\IonicProjects\gdgAbidjanApp
17 error Windows_NT 6.3.9600
18 error argv “C:\Program Files\nodejs\node.exe” “C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js” “run” “ionic:serve” “–” “–v2” “–address” “0.0.0.0” “–port” “8100” “–livereload-port” "35729"
19 error node v6.10.3
20 error npm v3.10.10
21 error code ELIFECYCLE
22 error ionic-hello-world@0.0.0 ionic:serve: ionic-app-scripts serve "--v2" "--address" "0.0.0.0" "--port" "8100" "--livereload-port" "35729"
22 error Exit status 1
23 error Failed at the ionic-hello-world@0.0.0 ionic:serve script ‘ionic-app-scripts serve “–v2” “–address” “0.0.0.0” “–port” “8100” “–livereload-port” “35729”’.
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 ionic-hello-world package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error ionic-app-scripts serve “–v2” “–address” “0.0.0.0” “–port” “8100” “–livereload-port” "35729"
23 error You can get information on how to open an issue for this project with:
23 error npm bugs ionic-hello-world
23 error Or if that isn’t available, you can get their info via:
23 error npm owner ls ionic-hello-world
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]