add npm to $PATH ubuntu code example Example: add npm to $PATH ubuntu sudo chown -R $(whoami) $(npm config get prefix)/{lib/node_modules,bin,share}