-
Choerodon平台版本:0.19.0
-
运行环境(如localhost或k8s):localhost
-
遇到问题时的前置条件:
-
问题描述:
在base-service下执行
npm install --registry https://nexus.choerodon.com.cn/repository/choerodon-npm/ 成功后
本地启动前端 npm run start 报错,错误如下:
"D:\Program Files\nodejs\node.exe" "D:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" run start --scripts-prepend-node-path=auto
> @choerodon/base@0.19.0 start D:\devops\choerodon-framework\base-service
> choerodon-front-boot start --config ./react/config.js
building modules (1/1 modules)events.js:174
throw er; // Unhandled 'error' event
^
Error: listen EACCES: permission denied 0.0.0.0:9090
at Server.setupListenHandle [as _listen2] (net.js:1262:19)
at listenInCluster (net.js:1327:12)
at doListen (net.js:1460:7)
at process._tickCallback (internal/process/next_tick.js:63:19)
at Function.Module.runMain (internal/modules/cjs/loader.js:834:11)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
Emitted 'error' event at:
at emitErrorNT (net.js:1306:8)
at process._tickCallback (internal/process/next_tick.js:63:19)
[... lines matching original stack trace ...]
at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @choerodon/base@0.19.0 start: `choerodon-front-boot start --config ./react/config.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @choerodon/base@0.19.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\gqzmy\AppData\Roaming\npm-cache\_logs\2019-10-29T09_09_16_271Z-debug.log
- 疑问:
造成此错误的原因是什么?