Search code examples
javascriptnode.jsnpmpathnode-sass

How to restore default global path for npm in Ubuntu?


I had changed default global path for node-sass package, but now other packages that are installed globally in a new way do not work globally! How to fix it ?


Solution

  • Run this

    npm config set prefix /usr/local
    

    see documentation