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".
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
yarn:
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.