'How to update mkdir in order to install express-generator without warnings?
I was going to install express-generator on windows computer. I used thisnpm install -g express-generator
command in cmd and it gave me this
npm WARN deprecated [email protected]: 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 usednpm install mkdirp@1
and successfully installed [email protected] version. CMD confirmed it showing me this message
+ [email protected]
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 1:[1]
it's caused by generally access copyright;
you can avoid the access to modify directory by :
$ sudo npm install -g [email protected]
or the latest version to install:
Solution 2:[2]
You can run the application generator with the npx command (available in Node.js 8.2.0).
$ npx express-generator
Solution 3:[3]
Run all this in window terminal CMD or powershell
Step-1 update the mkdirp.
- $ npm install mkdirp@1* in CMD
Step-2 Install express globlly.
- $ npm i -g express-generator* in CMD
? Now its works ?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Salma Elshahawy |
Solution 2 | user1231317 |
Solution 3 | Lovekush Rajput |