upleveled / system-setup

Set up a PERN development environment on Windows, macOS and Linux
28 stars 19 forks source link

Add step to set up pnpm global bin directory with `pnpm setup`? #42

Closed karlhorky closed 5 months ago

karlhorky commented 1 year ago

Should pnpm setup be run as part of all System Setup guides? (and are there any other steps that need to be run, such as the source command that pnpm tells you to run after pnpm setup?)

Students are running into issues with ERR_PNPM_NO_GLOBAL_BIN_DIR errors:

$ pnpm add --global @upleveled/preflight
 ERR_PNPM_NO_GLOBAL_BIN_DIR  Unable to find the global bin directory

Run "pnpm setup" to create it automatically, or set the global-bin-dir setting, or the PNPM_HOME env variable. The global bin directory should be in the PATH.

Bildschirmfoto 2023-08-30 um 13 08 51

karlhorky commented 1 year ago

It seems like this was partially worked on in this issue, but not completed:

karlhorky commented 5 months ago

@ProchaLu seems like this is still an issue on a fresh Linux (Ubuntu) installation: