nodejs安装错误

network错误:

npm ERR! network tunneling socket could not be established, cause=connect ECONNREFUSED 127.0.0.1:8080

npm ERR! network This is most likely not a problem with npm itself

npm ERR! network and is related to network connectivity.

npm ERR! network In most cases you are behind a proxy or have bad network settings.

npm ERR! network 

npm ERR! network If you are behind a proxy, please make sure that the

npm ERR! network 'proxy' config is set properly.  See: 'npm help config'

 

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

npm ERR!     /Users/jikuandai/Desktop/demo/npm-debug.log

 

    at ChildProcess.exithandler (child_process.js:206:12)

    at emitTwo (events.js:106:13)

    at ChildProcess.emit (events.js:191:7)

    at maybeClose (internal/child_process.js:852:16)

    at Socket.<anonymous> (internal/child_process.js:323:11)

    at emitOne (events.js:96:13)

    at Socket.emit (events.js:188:7)

    at Pipe._handle.close [as _onclose] (net.js:492:12)

 

解决办法:

npm config rm proxy

npm config rm https-proxy

 

错误2:Error: Cannot find module 'connect'

解决办法:

模块安装取消全局安装,即去除-g。sudo npm install connect -g

posted @   啄木鸟伍迪  阅读(470)  评论(0编辑  收藏  举报
编辑推荐:
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
阅读排行:
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· AI编程工具终极对决:字节Trae VS Cursor,谁才是开发者新宠?
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
历史上的今天:
2017-02-22 处理流——缓冲流
2017-02-22 十五(四)、url
2017-02-22 十五(三)、网络编程之UDP
2017-02-22 十五(二)、网络编程之通过TCP/UDP实现文件传输
2017-02-22 十五(一)、网络编程
2017-02-22 节点流——FileReaderWriter(使用)
2017-02-22 十四、IO
//火箭 GenerateContentList();

喜欢请打赏

扫描二维码打赏

了解更多

点击右上角即可分享
微信分享提示