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’命令新建的模版项目 ,怎么会报错,第一次遇 ...
随机推荐
- ABAP分享四 选择屏幕下拉菜单简单实现示例
PARAMETERS p_carri2 LIKE spfli-carrid AS LISTBOX VISIBLE LENGTH 20 ...
- 4、netty第三个例子,建立一个tcp的聊天的程序
代码基于第二个例子,支持多客户端的连接,在线聊天. 主要思路: 连接建立时,在服务器端,保存channel 对象,当有新的客户端加入时,遍历保存的channel集合,向其他客户端发送加入消息. 当一个 ...
- MySQL数据库~~~~~存储引擎
1. InnoDB InnoDB引擎特点: 1.支持事务:支持4个事务隔离界别,支持多版本读. 2.行级锁定(更新时一般是锁定当前行):通过索引实现,全表扫描仍然会是表锁,注意间隙锁的影响. 3.读写 ...
- [译]Vulkan教程(11)Image Views
Image views To use any VkImage, including those in the swap chain, in the render pipeline we have to ...
- opencv-python图像二值化函数cv2.threshold函数详解及参数cv2.THRESH_OTSU使用
cv2.threshold()函数的作用是将一幅灰度图二值化,基本用法如下: #ret:暂时就认为是设定的thresh阈值,mask:二值化的图像 ret,mask = cv2.threshold(i ...
- 02-Nginx配置
一.Nginx配置 1.创建Nginx运行使用的用户 www: / usr / sbin / groupadd www / usr / sbin / useradd -g www www 2.检查配置 ...
- 什么是面向对象编程(OOP)?
Java 程序员第一个要了解的基础概念就是:什么是面向对象编程(OOP)? 玩过 DOTA2 (一款推塔杀人的游戏)吗?里面有个齐天大圣的角色,欧洲战队玩的很溜,国内战队却不怎么会玩,自家人不会玩自家 ...
- ASP.NET MVC教程三:ASP.NET MVC部署方式
ASP.NET MVC编写的程序需要部署到IIS上面才能进行访问,部署方式分为两种. 一.直接用源代码部署 第一种方式可以直接使用源代码进行部署.部署步骤: 1.新建网站 在IIS里面选择网站,然后右 ...
- Asp.Net Core 内置IOC容器的理解
Asp.Net Core 内置IOC容器的理解 01.使用IOC容器的好处 对接口和实现类由原来的零散式管理,到现在的集中式管理. 对类和接口之间的关系,有多种注入模式(构造函数注入.属性注入等). ...
- 简单的PHP上传图片实例
分享一个简单的PHP上传图片实例,本实例主要介绍了上传图片的一些限制判断和上传图片的方法. 首先我们在form表单加上上传附件#file,上传按钮#imgbut,记得给form 表单加上multipa ...