您的位置:首页 > 产品设计 > 产品经理

cmd执行ionic serve命令,问题错误:npm ERR! Windows_NT

2016-12-22 15:21 513 查看
装好ionic2之后,你兴高采烈地准备大展身手,开启一片新天地,于是乎cmd执行 ionic serve

结果,遇到问题了:

Error: listen EADDRINUSE 0.0.0.0:53703

    at Object.exports._errnoException (util.js:1022:11)

    at exports._exceptionWithHostPort (util.js:1045:20)

    at Server._listen2 (net.js:1262:14)

    at listen (net.js:1298:10)

    at doListening (net.js:1397:7)

    at _combinedTickCallback (internal/process/next_tick.js:77:11)

    at process._tickCallback (internal/process/next_tick.js:98:9)

    at Module.runMain (module.js:607:11)

    at run (bootstrap_node.js:420:7)

    at startup (bootstrap_node.js:139:9)

npm ERR! Windows_NT 6.1.7601

npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\cuiy

\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "run" "ionic:serv

npm ERR! node v7.2.1

npm ERR! npm  v4.0.5

npm ERR! code ELIFECYCLEnpm ERR!

npm ERR! ionic-hello-world@ ionic:serve: `ionic-app-scripts serve`

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the ionic-hello-world@ ionic:serve script 'ionic-

serve'.

npm ERR! Make sure you have the latest version of node.js and npm in

npm ERR! If you do, this is most likely a problem with the ionic-hel

kage,

npm ERR! not with npm itself.

npm ERR! Tell the author that this fails on your system:

npm ERR!     ionic-app-scripts serve

npm ERR! You can get information on how to open an issue for this pr

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!     C:\Users\cuiyan\Desktop\projects\dianhu\npm-debug.log

解决很简单:

1.更新node,npm

2.执行cmd命令时,使用管理者权限就行了

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息