https://registry.npm.taobao.org/@smallwei%2favue: tunneling socket could not be established, cause=c

The front end reports an error when running the project:

error An unexpected error occurred: "https://registry.npm.taobao.org/@smallwei%2favue: tunneling socket could not be established, cause=connect ECONNREFUSED 127.0.0.1:8080".

insert image description here
tried

切换淘宝源:yarn config set registry https://registry.npm.taobao.org/
删除代理配置:npm config set http-proxy null
			 npm config rm https-proxy
			 yarn config delete proxy
			 npm config rm proxy
删除node-module包:rimraf node_modules  
清除缓存:npm cache clean --force 
		 npm cache verify 	

After each operation, restarting npm install or yarn will not work, and an error will still be reported. No error will be reported when using npm install, but an error will be reported when npm run dev: an error will be reported when
insert image description here
yarn:
insert image description here
After trying the above methods, I tried again Once yarn install, and then it can run successfully.

PS: I don’t know what’s wrong, I only know the proxy problem. I don’t know which one of the above methods works. You can try them all. Finally, I hope to use npm install and yarn install after each try to see if it works.

Supongo que te gusta

Origin blog.csdn.net/qq_51741730/article/details/128368257
Recomendado
Clasificación