First thing after getting a new Mac:

1
npm install -g pnpm

pnpm global

1
2
3
pnpm install -g @tarojs/cli
or
pnpm add -g @tarojs/cli

for npm:

1
npm install -g @tarojs/cli

Installed packages

1
pnpm list -g --depth=0

For npm:

1
npm list -g --depth=0