菜单

项目依赖丢失,js_脚本之家

2020年3月28日 - 新闻中心

本文介绍了VUE Error: getaddrinfo ENOTFOUND
localhost,分享给大家。具体如下:

vue+vux 项目依赖丢失 5C
项目已经发布,因为要加功能跑了dev后报了依赖丢失,可以肯定不是手动删的,求问为什么会出现这种状况,以及如何避免

Jins-MBP:helloworld XXX$ npm run dev

> helloworld@1.0.0 dev
/Users/XXX/Documents/develop/front/helloworld> webpack-dev-server
–inline –progress –config build/webpack.dev.conf.js

10% building modules 2/4 modules 2 active
…/develop/front/helloworld/src/main.jsevents.js:183 throw er; //
Unhandled ‘error’ event ^

Error: getaddrinfo ENOTFOUND localhost at errnoException at
GetAddrInfoReqWrap.onlookup [as oncomplete] npm ERR! code
ELIFECYCLEnpm ERR! errno 1npm ERR! helloworld@1.0.0 dev:
`webpack-dev-server –inline –progress –config
build/webpack.dev.conf.js`npm ERR! Exit status 1npm ERR!npm ERR项目依赖丢失,js_脚本之家。!
Failed at the helloworld@1.0.0 dev 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澳门太阳集团,!
/Users/XXX/.npm/_logs/2018-04-18T01_01_10_246Z-debug.log

To debug the “dev” script, make sure the %NODE_DEBUG_OPTION% string is
specified as the first argument for the node command you’d like to
debug.
For example:
“scripts”: {
“start”: “node %NODE_DEBUG_OPTION% server.js”
}

根据报错内容,推断是localhost的问题。有可能是localhost没有绑定127.0.0.1。

member@1.0.0 dev D:membermember
webpack-dev-server –inline –progress –config
build/webpack.dev.conf.js

127.0.0.1 localhost

module.js:550
throw err;
^

以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持脚本之家。

Error: Cannot find module ‘vux-loader’
at Function.Module._resolveFilename (module.js:548:15)
at Function.Module._load (module.js:475:25)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at Object. (D:membermemberbuildvue-loader.conf.js:4:19)
at Module._compile (module.js:653:30)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! member@1.0.0 dev:
webpack-dev-server --inline --progress --config build/webpack.dev.conf.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the member@1.0.0 dev 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:UsersDELLAppDataRoamingnpm-cache_logs2018-11-24T03_14_53_401Z-debug.log

Process finished with exit code 1

相关文章

发表评论

电子邮件地址不会被公开。 必填项已用*标注

网站地图xml地图