Error trying to run ionic serve windows

Posted on

Question :

When I try to start my project Ionic is giving the following error:

0 info it worked if it ends with ok
1 verbose cli [ 'C:Program Filesnodejsnode.exe',
1 verbose cli   'C:Program Filesnodejsnode_modulesnpmbinnpm-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   '',
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.5.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:Program Filesnodejsnode_modulesnpmbinnode-gyp-bin;C:xampphtdocsionicmyAppnode_modules.bin;C:UsersTecnologiaAppDataRoamingnpm;C:Program Filesnodejs;C:Windowssystem32;C:Windows;C:Windowssystem32wbem;C:Program Files (x86)EmbarcaderoStudio.0bin;C:UsersPublicDocumentsEmbarcaderoStudio.0Bpl;C:Program Files (x86)EmbarcaderoStudio.0bin64;C:UsersPublicDocumentsEmbarcaderoStudio.0BplWin64;C:totvsCorporeRMAPI;C:Program Files (x86)Common FilesIntelShared FilescppbinIntel64;C:ProgramDataOracleJavajavapath;C:WindowsSystem32WindowsPowerShellv1.0;C:Program Files (x86)SkypePhone;c:Program Files (x86)Microsoft SQL Server0ToolsBinnVSShellCommon7IDE;c:Program Files (x86)Microsoft SQL Server0ToolsBinn;c:Program FilesMicrosoft SQL Server0ToolsBinn;c:Program Files (x86)Microsoft SQL Server0DTSBinn;C:Program Files (x86)SkypePhone;C:Program Filesnodejs;C:totvsCorporeRMAPI;C:UsersTecnologiaAppDataRoamingnpm
10 verbose lifecycle ionic-hello-world@~ionic:serve: CWD: C:xampphtdocsionicmyApp
11 silly lifecycle ionic-hello-world@~ionic:serve: Args: [ '/d /s /c',
11 silly lifecycle   'ionic-app-scripts serve "--v2" "--address" "" "--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" "" "--port" "8100" "--livereload-port" "35729"'
14 verbose stack Exit status 1
14 verbose stack     at EventEmitter.<anonymous> (C:Program Filesnodejsnode_modulesnpmlibutilslifecycle.js:279:16)
14 verbose stack     at emitTwo (events.js:106:13)
14 verbose stack     at EventEmitter.emit (events.js:192:7)
14 verbose stack     at ChildProcess.<anonymous> (C:Program Filesnodejsnode_modulesnpmlibutilsspawn.js:40:14)
14 verbose stack     at emitTwo (events.js:106:13)
14 verbose stack     at ChildProcess.emit (events.js:192:7)
14 verbose stack     at maybeClose (internal/child_process.js:890:16)
14 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
15 verbose pkgid ionic-hello-world@
16 verbose cwd C:xampphtdocsionicmyApp
17 error Windows_NT 6.1.7600
18 error argv "C:Program Filesnodejsnode.exe" "C:Program Filesnodejsnode_modulesnpmbinnpm-cli.js" "run" "ionic:serve" "--" "--v2" "--address" "" "--port" "8100" "--livereload-port" "35729"
19 error node v7.5.0
20 error npm  v4.1.2
21 error code ELIFECYCLE
22 error ionic-hello-world@ ionic:serve: 'ionic-app-scripts serve "--v2" "--address" "" "--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" "" "--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" "" "--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 can be, I already uninstalled and installed again and continues giving this message.


Answer :


 npm rebuild node-sass

Source: link


Leave a Reply

Your email address will not be published. Required fields are marked *