nvm is not compatible with the npm config “prefix” option:

Delete and Reset the prefix Note: Change the version number with the one indicated in the error message. nvm is not compatible with the npm config “prefix” option: currently set to “/usr/local” Run “npm config delete prefix” or “nvm use –delete-prefix v6.11.1 –silent” to unset it. Credits to @gabfiocchi on Github – “You need to overwrite … Read more

how to update npm on macOS

Perhaps you have already solved this, but here is what I found when I had exactly this issue. I had 2 versions of npm installed. I verified this as follows: I worked around the issue by updating the path in my bash profile, but would like to know why (how) I ended up with 2 … Read more

How do I install Angular 2 using NPM?

at https://angular.io/docs/ts/latest/guide/setup.html, is recommended to use QuickStart seed, here is its package.json, so actually we need to download its dependencies: you could also create your custom package.json, by running npm init, copying these dependencies (or most of them) and than running npm install with your package.json

What is the difference between Bower and npm?

All package managers have many downsides. You just have to pick which you can live with. History npm started out managing node.js modules (that’s why packages go into node_modules by default), but it works for the front-end too when combined with Browserify or webpack. Bower is created solely for the front-end and is optimized with … Read more

Webpack command not found

I have installed webpack using npm install -g webpack and I also installed webpack-dev-server After completion of installation, I ran the command webpack but, it shows below error webpack: command not found I am not getting what is the error.

‘tsc command not found’ in compiling typescript

A few tips in order restart the terminal restart the machine reinstall nodejs + then run npm install typescript -g If it still doesn’t work run npm config get prefix to see where npm install -g is putting files (append bin to the output) and make sure that they are in the path (the node js setup does this. Maybe … Read more