npm报错 This is probably not a problem with npm,there is likely additional logging output above可能的原因
1
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
解决方法:
输入npm install 或 cnpm install 后,再次启动
npm run dev 成功启动!
2
10% building 8/9 modules 1 active …web.0.9.2\node_modules\lodash\lodash.jsevents.js:183
Error: getaddrinfo ENOTFOUND dev.maxim.top at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:67:26)
解决办法:Error: getaddrinfo ENOTFOUND dev.maxim.top at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:67:26)
错误提示,应该是无法去访问dev.maxim.top,然后去全局搜索dev.maxim.top,发现在webpack.dev.config.js文件中有,由于这
个dev.maxim.top无法访问而导致的,我们只需将dev.maxim.top改成localhost,重新 npm run dev 就可以成功启动了。
3
npm 报错This is probably not a problem with npm. There is likely additional logging output above.
可能是版本的问题
-
重新 npm install
-
然后 npm i -D webpack-dev-server@3.0.0
-
再 npm run dev
重新安装一次,如果还是不可以的话,在把之前装的都清空
- rm -rf node_modules
- rm package-lock.json
- npm cache clear --force
- npm install
AtomGit 是由开放原子开源基金会联合 CSDN 等生态伙伴共同推出的新一代开源与人工智能协作平台。平台坚持“开放、中立、公益”的理念,把代码托管、模型共享、数据集托管、智能体开发体验和算力服务整合在一起,为开发者提供从开发、训练到部署的一站式体验。
更多推荐


所有评论(0)