npm 卡住 type-fest@^0.20.2 问题解决
卡在 idealTree:globby: sill fetch manifest type-fest@^0.20.2
npm set strict-ssl false 无效
npm install -g npm 升级到最新版本命令 已经是最新,无效
没用,可以看到错误信息
npm config set registry https://registry.npm.taobao.org/
npm cache clear --force
npm install --verbose
发现问题,下面这个循环打印, 看样子问题出在 ajv-keywords
npm timing idealTree:node_modules/_ajv-keywords@3.5.2@ajv-keywords Completed in 6ms
npm timing idealTree:node_modules/_ajv-keywords@2.1.1@ajv-keywords Completed in 5ms
将 node_modules清空, 单独安装 ajv-keywords, 仍然报错, 发现node-saas老生常谈的错误出来了
npm ERR! path D:\codes\LarkMidTable\larkmidtable-ui\node_modules\node-sass
npm ERR! command failed
npm ERR! gyp verb check python checking for Python executable "python2" in the PATH
尝试升级 npm i node-sass@6.0.1 , 报错
看到了报错
npm ERR! path D:\codes\LarkMidTable\larkmidtable-ui\node_modules\node-sass
npm ERR! command failed
gyp verb `which` failed Error: not found: python2
尝试安装
npm install --global windows-build-tools
卡住了,加上 --verbose运行查看运行过程
npm install --global windows-build-tools
报警告
npm WARN deprecated windows-build-tools@5.2.2: Node.js now includes build tools for Windows. You probably no longer need this tool. See https://github.com/felixrieseberg/windows-build-tools for details.
意思是已经包含这个工具了, 那么现在问题就是缺少python2, 手工安装吧
不甘心, npm怎么需要用户手工安装python2呢?
重新安装报错
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! git@github.com: Permission denied (publickey).
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.
解决方案
在终端中输入: 将 ssh 下载方式改成 https
git config --global url."https://".insteadOf ssh://git
仍然无效,报错表明无法下载, 怀疑是网络问题,科学上网安排上接着编译
报错 node-sass , 这个经典的错误好解决
npm ERR! code 1
npm ERR! path D:\codes\LarkMidTable\larkmidtable-ui\node_modules\node-sass
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node scripts/install.js
npm ERR! node:internal/modules/cjs/loader:1197
npm ERR! throw err;
npm ERR! ^
npm ERR!
npm ERR! SyntaxError: D:\codes\LarkMidTable\larkmidtable-ui\node_modules\har-schema\lib\query.json: Unexpected end of JSON input
npm ERR! at parse (<anonymous>)
npm ERR! at Object.Module._extensions..json (node:internal/modules/cjs/loader:1194:22)
npm ERR! at Module.load (node:internal/modules/cjs/loader:1004:32)
npm ERR! at Function.Module._load (node:internal/modules/cjs/loader:839:12)
npm ERR! at Module.require (node:internal/modules/cjs/loader:1028:19)
npm ERR! at require (node:internal/modules/cjs/helpers:102:18)
npm ERR! at Object.<anonymous> (D:\codes\LarkMidTable\larkmidtable-ui\node_modules\har-schema\lib\index.js:18:10)
npm ERR! at Module._compile (node:internal/modules/cjs/loader:1126:14)
npm ERR! at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
npm ERR! at Module.load (node:internal/modules/cjs/loader:1004:32)
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\gs850\AppData\Local\npm-cache\_logs\2022-10-23T07_42_13_092Z-debug-0.log
版本问题
升级 "node-sass": "^v7.0.3",对应本地node版本 16
然后更新版本 npm update --verbose
然后 重新编译,通过了
npm install --verbose
总结: 主要是升级版本,科学上网也帮助了一些吧.
npm 卡住 type-fest@^0.20.2 问题解决相关推荐
- Consider defining a bean of type `xxx` in your configuration问题解决
Consider defining a bean of type `xxx` in your configuration问题解决 参考文章: (1)Consider defining a bean o ...
- Kubernetes 纳管节点卡住导致加入集群失败问题解决
问题现象 之前自己搭建了一个k8s集群,配置如下: os: centos8 master: 8U8G 192.168.2.106 worker1: 4U4G 192.168.2.240 worker2 ...
- javax.el.PropertyNotFoundException: Property ‘XXX‘ not found on type xx.xx.xx.xx问题解决(el表达式))
写javaweb项目的时候,遇到了javax.el.PropertyNotFoundException: Property 'XXX' not found on type xx.xx.xx.xx报错, ...
- no matching host key type found. Their offer: ssh-rsa 问题解决
最近升级了Mac OS Ventura 13.0.1后发现ssh指定密钥登录服务器失败. no matching host key type found. Their offer: ssh-rsa 进 ...
- cad文本改宋体字型lisp_CAD的40个常用命令和20个常见问题解决方法 撩妹必备技能...
CAD这么多命令和快捷方式,你掌握了几分? 1. 创建直线的命令是L+空格 18. 局部观察平面图细节Z+空格 2. 创建圆的命令是C+空格 19. 显示实时缩放的放大镜 Z+双空格 3. 创建圆弧的 ...
- TypeScript故事—如何使用TypeScript在NPM上发布自定义钩子
On this page: 在本页面: What is NPM? 什么是NPM? Why React Custom Hooks? 为什么要使用自定义挂钩? Where does TypeScript ...
- LOAM系列——ISCLOAM配置、编译、问题解决及VLP16测试效果(完结版)
ISCLOAM配置.编译.问题解决及VLP16测试效果 1)安装依赖 2)安装 3)KITTI sequence 07测试 4)VLP16bag包 5)直接使用VLP16 6)问题及解决 7)修改配置 ...
- web前端面试常考问题——持续更新中(5.20)
1.介绍一下你的技术栈 HTML5 + CSS3 + ES6 + Jquery + React + Webpack + git + npm .... 2.简单自我介绍 3.电商 ...
- 小小涉及OpenFeign原理:Could not extract response: no suitable HttpMessageConverter found for response type
一.问题解释(想看总结的去最下面) org.springframework.web.client.UnknownContentTypeException: Could not extract resp ...
最新文章
- msf 启动报[-] * WARNING: No database support: No database YAML file解决方法
- 51. ExtJs4之Ext.util.JSON编码和解码JSON对象
- BZOJ-3173-最长上升子序列
- Spring Cloud依赖
- oracle无法修改字段类型,Oracle如何修改字段类型呢? 爱问知识人
- 1月22日发布!疑似渠道商泄露荣耀V40价格:3999元起?
- iOS开发之cocoapods报错MacOSSierra10.13-bash: /usr/local/bin/pod: /System/Library/Frameworks/Ruby.framewor
- 模拟医院信息管理系统
- java translate_java – 当使用translate()方法时,JPanel中的Tit...
- Windows 7 Build 7068 下载泄露
- 为Array对象添加一个去除重复项的方法
- 《机器学习算法竞赛实战》整理 | 八、实战案例:Elo Merchant Category Recommendation
- Dubbo远程传输协议详解
- 19.3 Table 1-2.S3C2440A 289-Pin FBGA Pin Assignments (Sheet 4 of 9) (Continued)
- 定义一个类,提供显示圆的周长的方法,提供显示圆的面积的方法
- iOS、mac开源项目及库
- oracle数据库注入实战,教你oracle注入
- CCS6.2.0 如何将工程封装成lib文件
- 微信小程序·前端-锦囊
- Flash 第十章 补间动画复习和引导动画
热门文章
- 全国首个民企卫星智能AIT中心落户浙江台州 吉利全面布局商业卫星领域
- 【装机】老毛桃的安装及使用教程
- 五年数字大屏之路,“述说”着我们大数据变现怎样的故事?(附演示视频)...
- Rancher Labs获2000万美元B轮融资, CEO 梁胜出任有容云联席CTO
- 【Java杂货铺】JVM#Java高墙之GC与内存分配策略
- 几个不错的extjs的blog
- 【基于可见光定位的智能超市购物车系统】(四)可见光定位、电机驱动与整车设计
- SpringMVC(一)视图解析器
- ACM图论+数据结构杂题总结
- 时间序列之格兰杰因果关系检验(4)