npm ERR! code ENOLOCAL
Microsoft Windows [版本 6.1.]
版权所有 (c) Microsoft Corporation。保留所有权利。 G:\vue>cnpm i vue-router -S
'cnpm' 不是内部或外部命令,也不是可运行的程序
或批处理文件。 G:\vue>npm install -g cnpm –registry=https://registry.npm.taobao.org
npm ERR! code ENOLOCAL
npm ERR! Could not install from "–registry=https:\registry.npm.taobao.org" as it does not contain a package.json file. npm ERR! A complete log of this run can be found in:
npm ERR! D:\Users\realm\AppData\Roaming\npm-cache\_logs\--08T13_37_40_758Z-debug.log G:\vue>node -v
v12.13.1 G:\vue>npm install -g install
+ install@0.13.
updated package in .087s G:\vue>
G:\vue>
G:\vue>rm -r -f node_modules
'rm' 不是内部或外部命令,也不是可运行的程序
或批处理文件。 G:\vue>cpm install
'cpm' 不是内部或外部命令,也不是可运行的程序
或批处理文件。 G:\vue>cnpm install
'cnpm' 不是内部或外部命令,也不是可运行的程序
或批处理文件。 G:\vue>npm install -g cnpm –registry=https://registry.npm.taobao.org
npm ERR! code ENOLOCAL
npm ERR! Could not install from "–registry=https:\registry.npm.taobao.org" as it does not contain a package.json file. npm ERR! A complete log of this run can be found in:
npm ERR! D:\Users\realm\AppData\Roaming\npm-cache\_logs\--08T13_40_45_806Z-debug.log G:\vue>npm install -g node-gyp
D:\Users\realm\AppData\Roaming\npm\node-gyp -> D:\Users\realm\AppData\Roaming\npm\node_modules\node-gyp\bin\node-gyp.js
+ node-gyp@6.0.
added packages from contributors and updated packages in .358s G:\vue>cnpm install
'cnpm' 不是内部或外部命令,也不是可运行的程序
或批处理文件。 G:\vue>npm install -g cnpm –registry=https://registry.npm.taobao.org
npm ERR! code ENOLOCAL
npm ERR! Could not install from "–registry=https:\registry.npm.taobao.org" as it does not contain a package.json file. npm ERR! A complete log of this run can be found in:
npm ERR! D:\Users\realm\AppData\Roaming\npm-cache\_logs\--08T13_44_18_594Z-debug.log G:\vue>npm cache verify
Cache verified and compressed (~\AppData\Roaming\npm-cache\_cacache):
Content verified: ( bytes)
Content garbage-collected: ( bytes)
Index entries:
Finished in .516s G:\vue>npm cache clean
npm ERR! As of npm@, the npm cache self-heals from corruption issues and data extracted from the cache is guaranteed to be valid. If you want to make sure everything is consistent, use 'npm cache verify' instead. On the other hand, if you're debugging an issue with the installer
, you can use `npm install --cache /tmp/empty-cache` to use a temporary cache instead of nuking the actual one.
npm ERR!
npm ERR! If you're sure you want to delete the entire cache, rerun this command with --force. npm ERR! A complete log of this run can be found in:
npm ERR! D:\Users\realm\AppData\Roaming\npm-cache\_logs\--08T13_48_53_767Z-debug.log G:\vue>npm cache clean --force
npm WARN using --force I sure hope you know what you are doing. G:\vue>npm install -g cnpm –registry=https://registry.npm.taobao.org
npm ERR! code ENOLOCAL
npm ERR! Could not install from "–registry=https:\registry.npm.taobao.org" as it does not contain a package.json file. npm ERR! A complete log of this run can be found in:
npm ERR! D:\Users\realm\AppData\Roaming\npm-cache\_logs\--08T13_49_35_280Z-debug.log G:\vue>npm i -g npm
D:\Users\realm\AppData\Roaming\npm\npx -> D:\Users\realm\AppData\Roaming\npm\node_modules\npm\bin\npx-cli.js
D:\Users\realm\AppData\Roaming\npm\npm -> D:\Users\realm\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js
+ npm@6.13.
added packages from contributors in .607s G:\vue>npm install -g cnpm --registry=http://registry.npm.taobao.org
D:\Users\realm\AppData\Roaming\npm\cnpm -> D:\Users\realm\AppData\Roaming\npm\node_modules\cnpm\bin\cnpm
+ cnpm@6.1.
added packages from contributors in .011s G:\vue>
npm升级后,npm install 报错了,这就尴尬了。
Google了一下在这里(https://github.com/npm/npm/issues/16861)找到了解决方案:
里面各种解决方案,让Try这个命令Try那个命令,看着一脸懵逼不知道该用那个命令,浏览评论的时候发现“npm cache verify”这条命令帮助了不少人,然后果断在iterm2执行了,嗯,莫名其妙的好了。
评论里的命令有下面这些:
npm cache verify
npm cache clean
npm cache clean --force
npm i -g npm
grep -ir "sha1-xxxxxxxxxxxxxxxx" ~/.npm
实在不行就一条一条执行试试,看那个能帮到你
npm ERR! code ENOLOCAL的更多相关文章
- 安装Vue2的devtools发生错误npm ERR! code EINTEGRITY npm ERR! sha1-HTFDXrRzR2Ew8Bv9zlMSCVgPsS0= integrity checksum failed when using sha1: wanted sha1-HTFDXrRzR2Ew8Bv9zlMSCVgPsS0= but got sha1-Z6BeTMF4nhAO6h5A
1.github下载地址:https://github.com/vuejs/vue-devtools 2.下载好后进入vue-devtools-master工程 执行npm install ---- ...
- npm ERR! code EINTEGRITY npm! ERR! shal-
npm ERR! code EINTEGRITY npm ERR! sha1-nbqdpC/e8IOA7poHctXL5+bVXsE= integrity checksum failed when u ...
- npm ERR! code ENOENT
npm ERR! path F:\VsCodeWorkspace\labWeb\front\LabWebAdminFrontEnd\node_modules\core-jsnpm ERR! code ...
- npm install出错,npm ERR! code EINTEGRITY npm ERR! Verification failed while extracting url-parse@1.4.3
npm install时出现以下错误: npm ERR! code EINTEGRITY npm ERR! Verification failed while extracting url-parse ...
- 解决NPM无法安装任何包的解决方案(npm ERR! code MODULE_NOT_FOUND)
前言 今天突然发现npm无法使用了,执行任何命令都报如下错误: npm ERR! code MODULE_NOT_FOUND npm ERR! Cannot find module 'internal ...
- 执行npm install报错:npm ERR! code EINTEGRITY
命令行执行npm install报错如下: D:\frontend\viewsdev>npm install npm ERR! code EINTEGRITY npm ERR! sha512-8 ...
- npm ERR! code: 'EPERM' (权限问题 errro permit)
PS C:\Users\user\Desktop\test\my-project> npm run iview --save npm ERR! missing script: iview npm ...
- npm ERR! code EINTEGRITY npm ERR! sha1- 报错解决办法
npm ERR! code EINTEGRITY npm ERR! sha1- 报错日志 npm ERR! code EINTEGRITY npm ERR! sha1-OGchPo3Xm/Ho8jAM ...
- npm install的时候报错 npm err code 1
在学习vue的时候,npm install的时候报错 npm err code 1,当时很郁闷,是‘vue init webpack my-project’命令新建的模版项目 ,怎么会报错,第一次遇 ...
随机推荐
- JS---DOM---点击操作---节点的方式---案例
点击操作---节点的方式---案例 案例1:点击按钮,设置p变色---节点的方式做 <!DOCTYPE html> <html lang="en"> < ...
- Git 自救指南
Git 虽然因其分布式管理方式,不完全依赖网络,良好的分支策略,容易部署等优点,已经成为最受欢迎的源代码管理方式.但是一分耕耘一分收获,如果想更好地掌握 git,需要付出大量的学习成本.即使在各种 G ...
- 三、VUE项目BaseCms系列文章:axios 的封装
项目开发中 ajax 是不可缺少的,一个好的封装可以减少我们很多的重复代码,维护也更方便.在 vue 开发中我们用的比较多的就是 axios.下面代码是项目中用到的 axios 的封装. http.j ...
- 基于Python和Xtrbackup的自动化备份与还原实现
xtrabackup是一个MySQL备份还原的常用工具,实际使用过程应该都是shell或者python封装的自动化脚本,尤其是备份.对还原来说,对于基于完整和增量备份的还原,还原差异备份需要指定增量备 ...
- 使用shell脚本查看数据库负载情况
原创 Oracle 作者:jeanron100 时间:2014-05-23 08:56:26 8912 2 平时在查看数据库的问题时,会有种迷茫的感觉,如果没有任何人反馈问题,基本上没有主动查找问 ...
- mysql分组报错Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column
环境:Server version: 5.7.27-0 ubuntu 18.04.1 (Ubuntu) 执行分组语句:select * from pet group by owner;时报错: mys ...
- (day65、66)Vue基础、指令、实例成员、JS函数this补充、冒泡排序
目录 一.Vue基础 (一)什么是Vue (二)为什么学习Vue (三)如何使用Vue 二.Vue指令 (一)文本指令 (二)事件指令v-on (三)属性指令v-bind (四)表单指令v-model ...
- BZOJ2820/LG2257 YY的GCD 莫比乌斯反演
问题描述 BZOJ2820 LG2257 题解 求 \(\sum\limits_{i=1}^{n}{\sum\limits_{j=1}^{m}{[gcd(i,j)==p]}}\) ,其中 \(p\)为 ...
- 关于中医的一段对话 [ZZ] -- 思维训练故事
转载自新浪博客 网址: http://blog.sina.cn/dpool/blog/s/blog_9880df4201015khq.html?type=-1 关于中医的一段对话 2013-01-26 ...
- 【编译系统02】编译器 - 语义分析器(semantic)的简单设计思路(变量类与变量表)
当我们分析到 "int n;",说明其已经定义了一个变量,之后又遇到一个 "n=3",我们从哪里去找这个n并且赋值呢? 答案是:通过我们定义的 变量表(Tabl ...