[Solved] NPM error when installing packages

Today I will show you a way to install npm packages without getting errors like this.

npm_error_1

Don’t worry, you can use this command to clear cache in npm.


npm cache clean

Then try install your desired package again, and see the result.

npm_error_2

Hope this help🙂

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s