sindresorhus / guides

A collection of succinct guides - Public Domain
2.47k stars 458 forks source link

This is not working on debian 9 #48

Closed spaceneenja closed 5 years ago

spaceneenja commented 5 years ago

Debian 9.7 Node 6.16.0 NPM 3.10.10

Using the Google Click to Deploy node.js application runtime on compute engine gives us a fresh instance.

As non-root user: wget -O- https://raw.githubusercontent.com/glenpike/npm-g_nosudo/master/npm-g-nosudo.sh | sh source ~/.bashrc npm install --global gatsby gatsby --version

Expected outcome prints gatsby version

Actual result

-bash: gatsby: command not found

Using the original instructions provided here however do work. https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally

sindresorhus commented 5 years ago

Open an issue on https://github.com/glenpike/npm-g_nosudo instead.