首页 > 编程语言 >node.js : request to https://registry.npmjs.org/vue failed, reason: connect ETIMEDOUT

node.js : request to https://registry.npmjs.org/vue failed, reason: connect ETIMEDOUT

时间:2022-12-08 00:44:05浏览次数:36  
标签:node npm vue https request registry install org

 

https://v2.vuejs.org/v2/guide/installation.html
https://v3.router.vuejs.org/installation.html
https://v3.cli.vuejs.org/
https://v3.vuex.vuejs.org/installation.html

npm install vuex --save
npm install -g @vue/cli
npm install vue-router
npm install vue

npm install vue -g
npm install vue-router -g
npm install vue-cli -g


C:\Users\geovindu\.npmrc

npm i [email protected] --save

request to https://registry.npmjs.org/vue failed, reason: connect ETIMEDOUT 104.16.19.35:443
解决办法是重新安装,从根部解决

1、执行:

npm config get proxy
npm config get https-proxy

如果返回值不为null,继续执行:

注意:要确保两个返回值都是null才可以,否则就要执行下面的代码

npm config set proxy null
npm config set https-proxy null

2、执行:

npm config set registry http://registry.cnpmjs.org/

3、重新安装

npm install -g cnpm --registry=https://registry.npm.taobao.org

指定淘宝镜像

npm config set registry http://registry.npm.taobao.org/


npm install -g cordova ionic
npm install d3 --save-dev

 

 

 

 

 

 

 

 

 

 

标签:node,npm,vue,https,request,registry,install,org
From: https://www.cnblogs.com/geovindu/p/16965009.html

相关文章

  • python requests.cookies.RequestsCookieJar()
    使用python的requests开发爬虫类程序时,经常需要将之前请求返回的set-cookie值,作为下一个请求的cookie发送。比如模拟登录之后的返回的sessionId,就需要作为后续请求的cookie......
  • TS.002.编译首个TS文件,并编译生成JS文件,再Node运行
    01.所有合法的JS代码,都是TS代码; 由TS编译生成JS文件后,代码中就没有类型型信息了;  02.简化运行TS的步骤>> 使用 ts-node包,直接在node.js中执行ts代......
  • MAC之安装NodeJs级环境配置
    一,安装NodeJS地址: ​​http://nodejs.p2hp.com/​​最后,会给出安装的路径,如下:二,配置环境变量1,  npm-gbin  (查看npm全局包可执行文件路径)2,写入到.bash_profile文......
  • Vue2(笔记25) - 脚手架 - render函数
    render 函数从错误提示开始打开项目入口文件:main.jsimportVuefrom'vue'importAppfrom'./App.vue'Vue.config.productionTip=falsenewVue({render:h=>h(App),......
  • vue 路由重复点击,报错处理
    路由重复点击,控制台会弹出提醒//在VueRouter上配置路由跳转,在router中的index.js中加上以下代码,注意加在use之前constrouterPush=VueRouter.prototype.push;VueR......
  • vue element tree 上移下移
    效果图需求是:上边没有了应该取最后一个  下边没有了应该取第一个       直接上代码;<template><el-tree:key="tree_key"v-loading=......
  • Agileboot 1.6.0 发布啦 - 一款致力于规范/精简/可维护 的Springboot + Vue3的快速开
    ⚡平台简介⚡AgileBoot是一套开源的全栈精简快速开发平台,毫无保留给个人及企业免费使用。本项目的目标是做一款精简可靠,代码风格优良,项目规范的小型开发脚手架。适合个人......
  • python-requests接入API
    API接入1APIApplicationProgrammingInterface,应用程序编程接口,是软件之间信息交互的桥梁。  2聚合数据(数据获取网站)网址:https://www.juhe.cn/docs/index/o......
  • vue的watch监听器里面如果使用箭头函数需谨慎
    vue.runtime.esm.js:587[Vuewarn]:Errorincallbackforwatcher"form.psiType":"TypeError:Cannotreadpropertiesofundefined(reading'form')"——————......
  • @RequestAttribute,@RequestBody 注解,代码实现分页查询
    @RequestAttribute,@RequestBody注解,代码实现分页查询1.@RequestAttribute注解@RequestAttribute获取request请求域中的数据测试如下:发起post请求2、@Request......