当前位置: 首页 > news >正文

部门网站建设电脑版浏览器入口

部门网站建设,电脑版浏览器入口,网站排名总是不稳定,天眼查个人查询入口文章目录vscode执行npm install 报错(npm ERR! code 128)的解决办法问题详情解决办法方法1方法2方法3方法4方法5方法6佛系解决方法vscode执行npm install 报错(npm ERR! code 128)的解决办法 问题详情 报错信息如下: npm install npm ERR! code 128 npm ERR! An …

文章目录

  • vscode执行npm install 报错(npm ERR! code 128)的解决办法
    • 问题详情
    • 解决办法
      • 方法1
      • 方法2
      • 方法3
      • 方法4
      • 方法5
      • 方法6
      • 佛系解决方法

vscode执行npm install 报错(npm ERR! code 128)的解决办法

问题详情

报错信息如下:

npm install
npm ERR! code 128
npm ERR! An unknown git error occurred
npm ERR! command git --no-replace-objects ls-remote ssh://git@github.com/nhn/raphael.git
npm ERR! command-line line 0: unsupported option "accept-new".
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.npm ERR! A complete log of this run can be found in:

解决办法

注意:以下命令在终端执行后,会在 C:\Users\用户名 目录下的.gitconfig文件中保存相应内容,如果某条内容报错,可手动删除.gitconfig中的内容后重新执行。

方法1

在项目目录下创建文件: .npmrc ,然后在里面添加如下内容:

sass_binary_site=https://npm.taobao.org/mirrors/node-sass/
registry=https://registry.npm.taobao.org

接着在vscode的终端执行如下命令:

git config --global url."https://github.com/nhn/raphael.git".insteadOf ssh://git@github.com/nhn/raphael.git

方法2

在项目目录下创建文件: .npmrc ,然后在里面添加如下内容:

sass_binary_site=https://npm.taobao.org/mirrors/node-sass/
registry=https://registry.npm.taobao.org

接着在vscode的终端执行如下2条命令:

git config --global url."https://github.com/nhn/raphael.git".insteadOf ssh://git@github.com/nhn/raphael.git
git config --global url."https://github.com/adobe-webplatform/eve.git".insteadOf ssh://git@github.com/adobe-webplatform/eve.git

方法3

挂代理:在终端执行如下两条命令

git config --global http.proxy http://127.0.0.1:1080
git config --global https.proxy https://127.0.0.1:1080

方法4

在vscode(项目目录)终端执行如下2条命令:
git --no-replace-objects ls-remote https://github.com.cnpmjs.org/nhn/raphael.git
git --no-replace-objects ls-remote https://github.com.cnpmjs.org/adobe-webplatform/eve.git

方法5

执行如下命令 将ssh 下载变成https:

git config --global url."https://".insteadOf ssh://git@

方法6

单独下载

npm install --save raphael

佛系解决方法

npm install 多执行几次,或者换个时间执行npm install

参考:npm install 报错,怎么搞? 哪里问题? #3859

http://www.dtcms.com/a/476888.html

相关文章:

  • 企业网站建设的注意事项优质的天津网站建设
  • 商务网站建设模板网站后台有安全狗
  • 公司网站代做网站设计流程的步骤
  • 销售型企业网站wordpress导航改哪个php文件夹
  • 自己做网站投放广告短视频运营
  • 做网站嘉兴北京市建设局网站首页
  • 网站结构设计的内容网站首页置顶是怎么做
  • 帝国cms关闭网站网页设计师培训机构免费
  • 如何用c 做网站网站icp备案证书
  • 建设通网站会员免费吗网站下拉菜单
  • 美妆网站设计软件商城安装
  • 公司做零申报在哪个网站上外贸论坛怎么推广
  • 怎么自己网站搜不到了提供网站建设出售
  • 建设工程信息在什么网站发布消防微型建设标准的网站是多少
  • 建设公司网站要注意哪些网页图片不能正常显示的原因
  • 东莞高端网站建设费用网站建设与推广的区别
  • 北京 网站定制开发奉贤做网站
  • 怎样更新网站内容辽宁建设工程信息网二级建造师查询
  • 建湖网站开发wordpress前台上传
  • 南昌哪家网站建设最好wordpress 界面英文
  • 地图 添加到网站福州制作网站提供商
  • 网站报价方案制作wordpress主题
  • 宁波三优互动网站建设公司怎么样手机设计图软件app
  • 网站建设大约需要多少钱传统网站和手机网站的区别是什么意思
  • 网站软文推广范文杭州滨江建行网站
  • 网站 留言 以邮件形式小学生收集的新闻10条
  • 什么是网站模板论坛定制
  • 如何发布自己做的网站门户网站源码
  • 学习网站开发体会与感想哪个网站可以发宝贝链接做宣传
  • 网站如何验收厦门网站建设有限公司