You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# On most Unix systems including macOS, you can install with a single command:
curl https://get.volta.sh | bash
# Download and install Node.js:
volta install node@23
# Verify the Node.js version:
node -v # Should print "v23.8.0".
# Download and install pnpm:
corepack enable pnpm
# Verify pnpm version:
pnpm -v
When I tried to execute corepack enable pnpm I got an error zsh: /mnt/c/Program Files/nodejs/corepack: bad interpreter: /bin/sh^M: no such file or directory
I have Ubuntu 24.04 with zsh installed in WSL2 and was following a guide on node site: https://nodejs.org/en/download
When I tried to execute
corepack enable pnpm
I got an errorzsh: /mnt/c/Program Files/nodejs/corepack: bad interpreter: /bin/sh^M: no such file or directory
According to this, it related to PATH not being defined properly https://stackoverflow.com/questions/39311147/cannot-run-npm-commands, I tried to follow some advices, updating my .zshrc manually, but without success, so I tried to use nvm, and it worked with it
The text was updated successfully, but these errors were encountered: