How to update mkdir in order to install express-generator without warnings?

0

Issue

I was going to install express-generator on windows computer. I used this

npm install -g express-generator

command in cmd and it gave me this

npm WARN deprecated mkdirp@0.5.1: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.) warning. Then I used

npm install mkdirp@1

and successfully installed mkdirp@1.0.4 version. CMD confirmed it showing me this message

+ mkdirp@1.0.4
updated 1 package and audited 1 package in 1.981s
found 0 vulnerabilities

But unfoutunately when I try to reinstall express-generator using npm install -g express-generator, cmd shows me the same warning. Exactly the same warning. How Can I update mkdirp?? Help Me..

Solution

it’s caused by generally access copyright;

you can avoid the access to modify directory by :

$ sudo npm install -g express-generatoe@4.15.0

or the latest version to install:

Answered By – nicolas Java Python d'aversa

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave A Reply

Your email address will not be published.

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More