
node
迷途大灰狼
这个作者很懒,什么都没留下…
展开
-
解决npm ERR! Unexpected end of JSON input while parsing near的方法汇总
npm ERR! Unexpected end of JSON input while parsing near这个错误的解决方法有以下几种:1.删掉package.lock.json2.清除cachenpm cache clean --force3.进入下面这个文件夹清除cache路径:C:/Users/PC/AppData/Roaming/npm-cache执行:npm cache clean --force4.不要用淘宝镜像npm set regist.转载 2021-03-17 15:11:21 · 1088 阅读 · 1 评论 -
安装node库时报错node-sass@4.12.0 postinstall: `node scripts/build.js`
最近安装node库经常遇到这种报错:node-sass@4.12.0 postinstall: `node scripts/build.js`可以设置一下npm淘宝镜像,然后用cnpm来重新安装库npm install -g cnpm --registry=https://registry.npm.taobao.org转载 2020-05-25 10:36:24 · 2520 阅读 · 0 评论 -
【前端项目部署错误】npm ERR! notarget No matching version found for event-stream@3.3.6
npm install初始化项目时出现如下错误,试过升级npm版本等很多方法都不能解决。No matching version found for event-stream@3.3.6 说明没有匹配的版本,去官网https://www.npmjs.com/搜索这个包查看它的所有版本,然而,并没有这个3.3.6。。。最后发现原因在于package-lock.json 文件出了...转载 2019-12-03 11:16:31 · 8539 阅读 · 0 评论