Problema
Quando provi ad installare un qualsiasi pacchetto in NPM, alla fine dell’installazione non da nessun errore ma quando verifichi la corretta installazione non ha installato nulla
Soluzione
first check your npm root
and npm root -g
the result for the npm root -g
should be something like "/usr/local"
. if it’s not, then you found your problem.
change it by:
npm config set prefix /usr/local
then npm root -g
should give you something like /usr/local/lib/node_modules
. Then go ahead re-install everything with -g
you will be good to go!