I just updated npm to 5.4.0.
Now, Whenever I want install a npm package I get the following error:
D:\\Sources\\DownloadCms\\Md
If you downgrade to 5.3 and still get the same error in Windows like me.
After hours working with npm versions I found the following solution:
1. Download latest recommended version of nodejs, these days is node-v6.11.3-x64
2. Uninstall nodejs with it.
3. Go to C:\Users\{YourUsername}\AppData\Roaming folder and delete npm and npm-cache folders
4. Run installer of nodejs again and install it
5 Update npm to 5.3 with npm i -g npm@5.3 command line
Now you should use npm without any issues.
For me it worked in bash from git package try:
C:\Program Files\Git\bin\bash.exe
then:
npm install mds.angular.datetimepicker@latest
npm cache verify solved my issue.
I was doing: ng new my-app
and I faced similar error
I have
node version: 10.16.0
npm v 6.9.0
It is an npm 5.4.0 issue https://github.com/npm/npm/issues/18287
Workarounds are
npm install --no-optionalI fixed by downgrading npm from 5.4.0 to version 5.3
npm i -g npm@5.3
I Hope this helps for you
For windows,
nodejs, these days is node-v6.11.3-x64C:\Users\{YourUsername}\AppData\Roaming folder and delete npm and npm-cache foldersnodejs again and install itnpm 3.10.10 should be installed along with node-v6.11.3-x64. npm 3.10.10 but did not work with 5.3.X.
Also it did not worked with higher versions of node (above
node-v6.11.3-x64)