Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

npm WARN registry Unexpected warning for https://registry.npmjs.org/:

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:

my error message

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:

the second error message

like image 242
kyrolos magdy Avatar asked Aug 29 '18 02:08

kyrolos magdy


People also ask

What is registry Npmjs?

The public npm registry is a database of JavaScript packages, each comprised of software and metadata. Open source developers and developers at companies use the npm registry to contribute packages to the entire community or members of their organizations, and download packages to use in their own projects.

What is the default npm registry?

The default is typically set to the public npm registry at https://registry.npmjs.org/ . For more information about npm configuration files, see the npm config file documentation.


1 Answers

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

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

npm cache verify

Step 3: Then run your parcel bunder

npm install -g parcel-bundler  

or

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

Hopefully it should work.

like image 64
Ragavan Rajan Avatar answered Oct 04 '22 21:10

Ragavan Rajan