How do I fix npm’s global location?

npm uses a .npmrc file which should be in your home directory. (ie ~/.npmrc) In this file you should see a key value pair with the key being “prefix”. Try setting the value to something like “/usr/lib64”. So your .npmrc file would have the following in addition to whatever else you put in it:

prefix = /usr/lib64

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)