npm install ERR_INVALID_URL错误

发布时间 2023-05-30 12:40:58作者: saaspeter

我在terminal中设置了proxy后,开启proxyon后,执行npm install包错误:

 把proxyoff后,错误又没有了,不知道是啥问题。下面的文章可能有作用:

https://weekendprojects.dev/posts/how-to-fix-npm-err_invalid_url/#:~:text=The%20%E2%80%9CNPM%20ERR_INVALID_URL%E2%80%9D%20error%20occurs%20when%20there%E2%80%99s%20an,again%20Verify%20you%20are%20using%20the%20correct%20registry