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

Windows版本Node.js常见问题及操作解决方式(小白入门必备)

npm i时ERROR:reason: certificate has expired问题

https://blog.csdn.net/m0_73360677/article/details/135774500

# 1.取消ssl验证;npm config set strict-ssl false#这个方法一般可以直接解决问题,如不能请尝试第二种方法# 2.更换npm镜像源:npm config set registry http://registry.cnpmjs.org
npm config set registry http://registry.npm.taobao.org

清除node本地缓存

npm cache clean --force

npm 报错 canvas@2.9.3 install: `node-pre-gyp install --fallback-to-build --update-binary

npm install canvas --canvas_binary_host_mirror=https://registry.npmmirror.com/-/binary/canvas

ERROR Failed to compile with 5 errors These dependencies were not found:

ERROR Failed to compile with 5 errors 22:00:59

These dependencies were not found:

  • path-to-regexp in ./node_modules/.store/cache-loader@4.1.0/node_modules/cache-loader/dist/cjs.js??ref–13-0!./node_modules/.store/babel-loader@8.3.0/node_modules/babel-loader/lib!./node_modules/.store/cache-loader@4.1.0/node_modules/cache-loader/dist/cjs.js??ref–1-0!./node_modules/.store/vue-loader@15.11.1/node_modules/vue-loader/lib??vue-loader-options!./src/components/common/BreadCrumbs.vue?vue&type=script&lang=js
  • quill/dist/quill.bubble.css in ./node_modules/.store/cache-loader@4.1.0/node_modules/cache-loader/dist/cjs.js??ref–13-0!./node_modules/.store/babel-loader@8.3.0/node_modules/babel-loader/lib!./node_modules/.store/cache-loader@4.1.0/node_modules/cache-loader/dist/cjs.js??ref–1-0!./node_modules/.store/vue-loader@15.11.1/node_modules/vue-loader/lib??vue-loader-options!./src/components/common/Editor.vue?vue&type=script&lang=js
  • quill/dist/quill.core.css in ./node_modules/.store/cache-loader@4.1.0/node_modules/cache-loader/dist/cjs.js??ref–13-0!./node_modules/.store/babel-loader@8.3.0/node_modules/babel-loader/lib!./node_modules/.store/cache-loader@4.1.0/node_modules/cache-loader/dist/cjs.js??ref–1-0!./node_modules/.store/vue-loader@15.11.1/node_modules/vue-loader/lib??vue-loader-options!./src/components/common/Editor.vue?vue&type=script&lang=js
  • quill/dist/quill.snow.css in ./node_modules/.store/cache-loader@4.1.0/node_modules/cache-loader/dist/cjs.js??ref–13-0!./node_modules/.store/babel-loader@8.3.0/node_modules/babel-loader/lib!./node_modules/.store/cache-loader@4.1.0/node_modules/cache-loader/dist/cjs.js??ref–1-0!./node_modules/.store/vue-loader@15.11.1/node_modules/vue-loader/lib??vue-loader-options!./src/components/common/Editor.vue?vue&type=script&lang=js
  • svg-baker-runtime/browser-symbol in ./src/icons/svg/svg/AI.svg

To install them, you can run: npm install --save path-to-regexp quill/dist/quill.bubble.css quill/di

解决:

从你给出的错误信息来看,问题出在几个依赖项没有找到,以及一个vue-style-loader的加载器无法解析。下面是一些可能的解决方案:
安装缺失的依赖项:
对于regenerator-runtime/runtime.js,它通常是由于你正在使用一些使用了regenerator的库或代码,例如regenerator-transform。你可以尝试运行以下命令来安装它:
复制代码

npm install --save regenerator-runtime

对于svg-baker-runtime/browser-symbol,看起来你正在尝试使用svg-baker来转换SVG文件。你需要安装这个包,但是似乎你提供的位置是不正确的。你可以尝试:
复制代码

npm install --save svg-baker

安装vue-style-loader:
如果你正在使用vue-loader和vue-style-loader,你需要确保它们都是最新的版本,并且它们的版本是兼容的。你可以运行以下命令来安装:

 npm install --save vue-style-loader vue-loader 
http://www.lryc.cn/news/288646.html

相关文章:

  • 09.Elasticsearch应用(九)
  • ROS2常用命令工具
  • Linux之快速入门
  • C语言——操作符详解1
  • C++学习| QT快速入门
  • Android App开发-简单控件(1)——文本显示
  • [GYCTF2020]Ezsqli1
  • 【npm包】如何发布自己的npm包
  • 《WebKit技术内幕》学习之十五(2):Web前端的未来
  • 【教学类-综合练习-11】20240116 大4班 最后一次
  • 【阻塞队列】阻塞队列的模拟实现及在生产者和消费者模型上的应用
  • Cocos Creator使用VS Code调试代码配置
  • 【投稿优惠|EI优质会议】2024年材料化学与清洁能源国际学术会议(IACMCCE 2024)
  • ubuntu设置右键打开terminator、code
  • PHP AES加解密:用代码为数据加上保护的盾牌
  • Socket实现服务器和客户端
  • 智能GPT图书管理系统(SpringBoot2+Vue2)、接入GPT接口,支持AI智能图书馆
  • 面试经典 150 题 ---- 合并两个有序数组
  • 防火墙在企业园区出口安全方案中的应用(ENSP实现)
  • 单片机学习笔记---矩阵键盘密码锁
  • 8-小程序数据promise化、共享、分包
  • [HTML]Web前端开发技术18(HTML5、CSS3、JavaScript )HTML5 基础与CSS3 应用——喵喵画网页
  • Threejs 展示——obj 格式模型导入
  • 深入浅出 diffusion(3):pytorch 实现 diffusion 中的 U-Net
  • C#使用RabbitMQ-2_详解工作队列模式
  • Day37 56合并区间 738单调递增的数字 968监控二叉树
  • 【Android】在WSA安卓子系统中进行新实验性功能试用与抓包(2311.4.5.0)
  • 【服务器】服务器的管理口和网口
  • 一个小例子,演示函数指针
  • python12-Python的字符串之使用input获取用户输入