-
I use nvm and pnpm in my new mbp m1. I execute command blow to install them: $ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
$ nvm install 16
$ curl -fsSL https://get.pnpm.io/install.sh | sh -
$ pnpm install-completion # it report a error. (just ignore it now then I install nrm use but after that i upgrade pnpm: $ pnpm root -g
/Users/xiamu/.nvm/versions/node/v16.13.2/pnpm-global/5/node_modules
$ pnpm prefix -g
/Users/xiamu/.nvm/versions/node/v16.13.2 if I install node v14, the root/prefix will changed to I think the dir of global pkg real installed should always be the same for unified management. and its easy to find all pkgs when uninstall pnpm. I am not sure whether its a bug, it behaves as expected in windows, wsl2 and macOS with intel (the global install directory always fixed, like |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I made a test. remove nvm and install node from nodejs.org and $ pnpm prefix -g
/usr/local
$ pnpm root -g
/Users/xiamu/pnpm-global/5/node_modules not |
Beta Was this translation helpful? Give feedback.
-
I remove both nvm and pnpm and reinstall them. now it works as expected.👐 |
Beta Was this translation helpful? Give feedback.
I remove both nvm and pnpm and reinstall them. now it works as expected.👐