npm global installed path config
In order to fix Error: EACCES: permission denied, access '/usr/lib/node_modules', a solution will be set installed path non-root. Here’s how to set it. 1 2 mkdir ~/.npm-global npm config set prefix '~/.npm-global' This can see if config set properly 1 npm config list Output will be like this 1 2 3 4 5 6 7 8 9 10 11 12 ; cli configs metrics-registry = "https://registry.npmjs.org/" scope = "" user-agent = "npm/6....