![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
npm
五月呀
在代码里游荡
展开
-
mac安装nvm
mac 安装npm包管理工具nvm原创 2022-11-23 14:09:58 · 8138 阅读 · 1 评论 -
npm error code ELIFECYCLE
npm error code ELIFECYCLE原创 2022-09-23 14:16:59 · 1621 阅读 · 3 评论 -
npm install报错error 404 Not Found - GET https://registry.npm.taobao.org/@xt
1.问题场景:vue cli3老项目重启,npm install安装报错。错误信息:4327 error code E4044328 error 404 Not Found - GET https://registry.npm.taobao.org/@xtuc/long/-/long-4.2.1.tgz - [not_found] document not found2.解决办法2.1先查看有没有设置代理执行下面的命令npm config get proxynpm c.原创 2021-09-01 17:44:21 · 14482 阅读 · 0 评论 -
npm报错error code EPERM, error syscall unlink,errno -4048解决
安装报错信息24741 error code EPERM24742 error syscall unlink24743 error path E:\workspaces\multiplatform\node_modules\.staging\regexpp-c7c47c68\index.js.map24744 error errno -404824745 error Error: E...原创 2020-01-17 18:19:42 · 13812 阅读 · 7 评论 -
npm install报错Unexpected end of JSON input while parsing near ‘...ersion“:“4.5.0“,“depe‘
这两天执行 npm install 时会报错误:17971 verbose stack SyntaxError: Unexpected end of JSON input while parsing near '...ersion":"4.5.0","depe'17971 verbose stack at JSON.parse (<anonymous>)17971 v...原创 2020-01-17 17:32:19 · 1358 阅读 · 0 评论 -
npm install报错peerDependencies WARNING eslint-plugin-vue@^5.2.3 requires a peer of eslint@^5.0.0 but
1、问题场景:npm install 报错,以为是npm问题,改成cnpm install,也还是报错,根据错误信息提示,推断是eslint版本不兼容。报错提示:peerDependencies WARNING eslint-plugin-vue@^5.2.3 requires a peer of eslint@^5.0.0 but eslint@6.8.0 was installed...原创 2020-01-17 15:52:13 · 28760 阅读 · 0 评论 -
npm install报错Maximum call stack size exceeded解决办法
1、问题场景项目里面执行npm install 时候报错,Maximum call stack size exceeded2、解决办法1、给npm升级查看npm版本//查看版本npm -v//更新到最新版本npm install -g npm删除nodel module,重新执行npm install。完美解决,如果还没有解决,请尝试方法2....原创 2019-11-21 16:41:05 · 50072 阅读 · 3 评论 -
vue-cli3+webpack热更新失效问题
1、起因A项目中遇到问题,热更新失效,百思不得其解,查询搜索vuecli3热更新失效、vue histroy 模式热更新失效,网上看到不少方法,npm重新安装,不要用淘宝镜像cnpm安装;npm安装yarn,再用yarn重新install,yarn serve启动,在npm run serve 启动等方法都不好用。github有类似问题https://github.com/vuejs/vue-...原创 2019-05-24 11:23:08 · 17348 阅读 · 3 评论 -
npm与package.json详解
1、npm是什么npm是前端开发广泛使用的包管理工具,它让js开发者分享、复用代码更方便。可以重复的框架代码被称为包(package)或者模块(module),一个包可是是一个文件夹里放着几个文件夹,还有一个package.json文件。npm的作用就是让我们把可复用的框架代码发布到一个地方,可以供大家一起使用。2、安装npmnpm是依赖node.js的,先去官网https://n...原创 2019-05-17 20:26:35 · 26828 阅读 · 0 评论 -
npm,node更新最新版本
1、错误场景:安装vue插件的时候,报错,提示安装最新版本npm ERR! Windows_NT 6.1.7601npm ERR! argv "D:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Administrator.CE-20151109NQJC\\AppData\\Roaming\\npm\\node_modules\\npm\\b...原创 2019-04-01 17:04:48 · 5423 阅读 · 0 评论