【Vue】NPM构建的一些问题解决
9418端口已经不再支持未授权的GIT协议
C:\Users\Administrator\Desktop\wss-taskcore-web>npm install
npm ERR! Error while executing:
npm ERR! C:\Program Files\Git\cmd\git.EXE ls-remote -h -t git://github.com/adobe-webplatform/eve.git
npm ERR!
npm ERR! fatal: remote error:
npm ERR! The unauthenticated git protocol on port 9418 is no longer supported.
npm ERR! Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/ for more information.
npm ERR!
npm ERR! exited with error code: 128 npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2022-03-22T09_19_07_660Z-debug.log C:\Users\Administrator\Desktop\wss-taskcore-web>
在.gitconfig文件中 C:\Users\Administrator\.gitconfig 更改协议配置:
[url "https://"]
insteadOf = ssh://
[url "https://"]
insteadOf = git://
无法访问此仓库:
C:\Users\Administrator\Desktop\wss-taskcore-web>npm install
npm ERR! Error while executing:
npm ERR! C:\Program Files\Git\cmd\git.EXE ls-remote -h -t https://github.com/nhn/raphael.git
npm ERR!
npm ERR! fatal: unable to access 'https://github.com/nhn/raphael.git/': OpenSSL SSL_read: Connection was reset, errno 10054
npm ERR!
npm ERR! exited with error code: 128 npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2022-03-22T09_22_58_762Z-debug.log C:\Users\Administrator\Desktop\wss-taskcore-web>
或者是这个仓库:
C:\Users\Administrator\Desktop\wss-taskcore-web>npm install
npm WARN deprecated tar@2.2.2: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.
npm ERR! code 128
npm ERR! Command failed: git clone --mirror -q git://github.com/adobe-webplatform/eve.git C:\Users\Administrator\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-9bf47203\.git --config core.longpaths=true
npm ERR! warning: templates not found in C:\Users\ADMINI~1\AppData\Local\Temp\pacote-git-template-tmp\git-clone-f3f86bec
npm ERR! fatal: unable to access 'https://github.com/adobe-webplatform/eve.git/': OpenSSL SSL_read: Connection was reset, errno 10054
npm ERR! npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2022-03-22T09_26_42_966Z-debug.log C:\Users\Administrator\Desktop\wss-taskcore-web>
解决方法:
配置Github主机地址在hosts文件中:
140.82.114.4 github.com
185.199.108.133 raw.githubusercontent.com
185.199.109.133 raw.githubusercontent.com
185.199.110.133 raw.githubusercontent.com
185.199.111.133 raw.githubusercontent.com
INSTALL命令追加镜像地址:
npm install --save node-sass --registry=https://registry.npm.taobao.org --disturl=https://npm.taobao.org/dist --sass-binary-site=http://npm.taobao.org/mirrors/node-sass
构建成功:
C:\Users\Administrator\Desktop\wss-taskcore-web>npm install --save node-sass --registry=https://registry.npm.taobao.org --disturl=https://npm.taobao.org/dist --sass-binary-site=http://npm.taobao.org/mirrors/node-sass
npm WARN deprecated tar@2.2.2: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap. > yorkie@2.0.0 install C:\Users\Administrator\Desktop\wss-taskcore-web\node_modules\yorkie
> node bin/install.js setting up Git hooks
can't find .git directory, skipping Git hooks installation > husky@1.3.1 install C:\Users\Administrator\Desktop\wss-taskcore-web\node_modules\husky
> node husky install husky > setting up git hooks
Can't find .git, skipping Git hooks installation.
Please check that you're in a cloned repository or run 'git init' to create an empty Git repository and reinstall husky. > node-sass@4.14.1 install C:\Users\Administrator\Desktop\wss-taskcore-web\node_modules\node-sass
> node scripts/install.js Downloading binary from http://npm.taobao.org/mirrors/node-sass/v4.14.1/win32-x64-72_binding.node
Download complete..] - :
Binary saved to C:\Users\Administrator\Desktop\wss-taskcore-web\node_modules\node-sass\vendor\win32-x64-72\binding.node
Caching binary to C:\Users\Administrator\AppData\Roaming\npm-cache\node-sass\4.14.1\win32-x64-72_binding.node > core-js@2.6.11 postinstall C:\Users\Administrator\Desktop\wss-taskcore-web\node_modules\core-js
> node -e "try{require('./postinstall')}catch(e){}" Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library! The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -) > core-js-pure@3.8.1 postinstall C:\Users\Administrator\Desktop\wss-taskcore-web\node_modules\core-js-pure
> node -e "try{require('./postinstall')}catch(e){}" > ejs@2.7.4 postinstall C:\Users\Administrator\Desktop\wss-taskcore-web\node_modules\ejs
> node ./postinstall.js Thank you for installing EJS: built with the Jake JavaScript build tool (https://jakejs.com/) > core-js@3.6.5 postinstall C:\Users\Administrator\Desktop\wss-taskcore-web\node_modules\tui-chart\node_modules\core-js
> node -e "try{require('./postinstall')}catch(e){}" > node-sass@4.14.1 postinstall C:\Users\Administrator\Desktop\wss-taskcore-web\node_modules\node-sass
> node scripts/build.js Binary found at C:\Users\Administrator\Desktop\wss-taskcore-web\node_modules\node-sass\vendor\win32-x64-72\binding.node
Testing binary
Binary is fine > vis-network@7.6.2 postinstall C:\Users\Administrator\Desktop\wss-taskcore-web\node_modules\vis-network
> opencollective postinstall || exit 0 'opencollective' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.12 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.12: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) + node-sass@4.14.1
added 2008 packages from 1981 contributors in 258.667s 33 packages are looking for funding
run `npm fund` for details C:\Users\Administrator\Desktop\wss-taskcore-web>
【Vue】NPM构建的一些问题解决的更多相关文章
- vue项目构建与实战
关于 微信公众号:前端呼啦圈(Love-FED) 我的博客:劳卜的博客 知乎专栏:前端呼啦圈 前言 由于vue相对来说比较平缓的学习过程和新颖的技术思路,使其受到了广大前后端开发者的青睐,同时其通俗易 ...
- 笔记:NPM 无限需要依赖问题解决
笔记:NPM 无限需要依赖问题解决 起因 因为想学一下 VUE,开始跟着教程一步一步输出命令,开始也没有什么问题,一切都很顺利. 突然不知道是哪一步出了问题,一直让我安装依赖,没完没了,开始并不觉得有 ...
- 使用webpack+vue.js构建前端工程化
参考文章:https://blog.csdn.net/qq_40208605/article/details/80661572 使用webpack+vue.js构建前端工程化本篇主要介绍三块知识点: ...
- 全栈前端入门必看 koa2+mysql+vue+vant 构建简单版移动端博客
koa2+mysql+vue+vant 构建简单版移动端博客 具体内容展示 开始正文 github地址 <br/> 觉得对你有帮助的话,可以star一下^_^必须安装:<br/> ...
- 我们为什么选择VUE来构建前端
很多使用过VUE的程序员,对VUE的评价是"Vue.js 兼具angular.js和react.js的优点,并剔除了它们的缺点". 那么,他真的值得这么高的评价嘛? Vue.js的 ...
- 使用 Vuex + Vue.js 构建单页应用
鉴于该篇文章阅读量大,回复的同学也挺多的,特地抽空写了一篇 vue2.0 下的 vuex 使用方法,传送门:使用 Vuex + Vue.js 构建单页应用[新篇] ------------------ ...
- npm构建保存 code ELIFECYCLE解决办法
参考文档https://blog.csdn.net/gh254172840/article/details/78871573 使用npm构建报错 解决办法,进入工作目录 rm -rf node_mod ...
- 关于npm构建angular2项目问题
我在win10系统下用npm构建好angular2项目之后,在命令行下运行 ng serve --open,报一下错误: Unknown browser query 'basedir=$(dirnam ...
- 使用npm构建前端项目基本流程
现在各种前端框架, 库文件基本都托管到npm上, 我们平常下载到别人的项目文件, 也基本是用npm 构建的, 不了解点node和npm那是寸步难行. 下面介绍的代码示例不敢说是最佳实践, 但都是我亲自 ...
- vue npm run build 失败
之前删除过 node-moudel 文件夹,然后 npm install 重新安装,一切OK.打包的时候,报错,找不到caniuse什么的.再删除node-moudel,重新cnpm install ...
随机推荐
- uniapp 跳转tabbar页面传递参数
我们这里采用的是本地缓存的方式进行页面的传参 首先看下官方有关本地缓存的介绍 1.设置本地缓存(-- uni.setStorageSync(KEY,DATA) --) 参数 类型 必填 说明 key ...
- Java中的包(Package)
# 包(Package) **为方便管理类(按照不同的功能管理类),解决同名问题的发生** - 使用`package关键字`修饰包 - **类名(全类名)=包名(地址)+类名简称** ```java ...
- 循环demo
// demo1,输出1-100所有可以同时被2和3同时整除的数值 //方法1 // 循环生成 1-100的数值 // for(var i = 1 ...
- [SHOI2011]双倍回文 题解
[SHOI2011]双倍回文 题解 看了一些写回文自动机的大佬的代码,我深感敬畏,于是我转身向Manacher走去 现在荣登最优解第一页-- 说实话,这个方法的复杂度是很玄学的,但是加了一些优化之后, ...
- minos 1.2 内存虚拟化——guest
首发公号:Rand_cs minos 1.2 内存虚拟化--guest 项目来自乐敏大佬:https://github.com/minosproject/minos 本文继续讲述 minos 中的内存 ...
- C#.NET HTTPS 双向证书 请求被中止: 未能创建 SSL/TLS 安全通道。
请求被中止: 未能创建 SSL/TLS 安全通道. 用mmc 给私钥证书添加Everyone 的权限.
- Kubernetes监控手册06-监控APIServer
写在前面 如果是用的公有云托管的 Kubernetes 集群,控制面的组件都交由云厂商托管的,那作为客户的我们就省事了,基本不用操心 APIServer 的运维.个人也推荐使用云厂商这个服务,毕竟 K ...
- windows powershell 解压 .gz文件
windows 10下解压.gz后缀文件 打开windows powershell界面,(1)输入cd desktop(文件的存储位置,示例为存储在电脑桌面上), (2)输入tar -zxvf 需要解 ...
- 开源的网络瑞士军刀「GitHub 热点速览」
上周的开源热搜项目可谓是精彩纷呈,主打的就一个方便快捷.开箱即用!这款无需安装.点开就用的网络瑞士军刀 CyberChef,试用后你就会感叹它的功能齐全和干净的界面.不喜欢 GitHub 的英文界面? ...
- WatchDog:一款.NET开源的实时应用监控系统
项目介绍 WatchDog是一个开源(MIT License).免费.针对ASP.Net Core Web应用程序和API的实时应用监控系统.开发者可以实时记录和查看他们的应用程序中的消息.事件.HT ...