npm WARN注册表https://registry.npmjs.org/的意外警告: [英] npm WARN registry Unexpected warning for https://registry.npmjs.org/:

查看:202
本文介绍了npm WARN注册表https://registry.npmjs.org/的意外警告:的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试使用 npm install 时,我的git-bash和终端面临一个奇怪的问题.我收到此错误:

I am facing a strange problem here with my git-bash and my terminal when I am trying to use npm install. I get this error:

有人告诉我清除缓存,但是我这样做了,但就我而言,它只是更改了,现在我没有收到任何错误消息.安装过程从未完成,我得到了这样的信息:

Someone told me to clear my caches and I did so, but in my case it just changed and now I get no error message. The installing process is never done and I get something like this:

推荐答案

步骤1:从您的项目中删除 package-lock.json 文件

Step 1: Delete package-lock.json file from your project

第2步:如果您的npm版本为5或更高版本.然后运行以下命令

Step 2: If your npm version is 5 and above. Then run the following command

npm cache verify

第3步:然后运行包裹包裹

Step 3: Then run your parcel bunder

npm install -g parcel-bundler  

npm install --save-dev parcel-bundler babel-preset-env 

希望它应该能工作.

这篇关于npm WARN注册表https://registry.npmjs.org/的意外警告:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆