0
点赞
收藏
分享

微信扫一扫

Error: listen EACCES 0.0.0.0:80 npm ERR! Darwin 17.3.0

热爱生活的我一雷广琴 2022-03-25 阅读 141

> node build/dev-server.js


events.js:160

      throw er; // Unhandled 'error' event

      ^


Error: listen EACCES 0.0.0.0:80

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

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

    at Server._listen2 (net.js:1246:19)

    at listen (net.js:1295:10)

    at Server.listen (net.js:1391:5)

    at EventEmitter.listen (/Users/user/javadev/SourceTree/XXX_hc_self/XXX-w/node_modules/.4.16.2@express/lib/application.js:618:24)

    at Object.<anonymous> (/Users/user/javadev/SourceTree/XXX_hc_self/XXX-w/build/dev-server.js:71:22)

    at Module._compile (module.js:570:32)

    at Object.Module._extensions..js (module.js:579:10)

    at Module.load (module.js:487:32)

    at tryModuleLoad (module.js:446:12)

    at Function.Module._load (module.js:438:3)

    at Module.runMain (module.js:604:10)

    at run (bootstrap_node.js:394:7)

    at startup (bootstrap_node.js:149:9)

    at bootstrap_node.js:509:3


npm ERR! Darwin 17.3.0

npm ERR! argv "/usr/local/bin/node" "/usr/local/lib/node_modules/cnpm/node_modules/.bin/npm" "--userconfig=/Users/user/.cnpmrc" "--disturl=https://npm.taobao.org/mirrors/node" "--registry=https://registry.npm.taobao.org" "run" "dev"

npm ERR! node v6.10.0

npm ERR! npm  v3.10.10

npm ERR! code ELIFECYCLE

npm ERR! XXX-w@1.0.0 dev: `node build/dev-server.js`

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the XXX-w@1.0.0 dev script 'node build/dev-server.js'.

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 XXX-w package,

npm ERR! not with npm itself.

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

npm ERR!     node build/dev-server.js

npm ERR! You can get information on how to open an issue for this project with:

npm ERR!     npm bugs XXX-w

npm ERR! Or if that isn't available, you can get their info via:

npm ERR!     npm owner ls XXX-w

npm ERR! There is likely additional logging output above.


npm ERR! Please include the following file with any support request:

npm ERR!     /Users/user/javadev/SourceTree/XXX_hc_self/XXX-w/npm-debug.log


端口问题: 修改port试试

dev: {
env: require('./dev.env'),
port: 8888,
// port: 80,
autoOpenBrowser: false,
assetsSubDirectory: 'static',
assetsPublicPath: '/',
proxyTable: {},
// CSS Sourcemaps off by default because relative paths are "buggy"
// with this option, according to the CSS-Loader README
// (https://github.com/webpack/css-loader#sourcemaps)
// In our experience, they generally work as expected,
// just be aware of this issue when enabling this option.
cssSourceMap: false
},




举报

相关推荐

0 条评论