admin管理员组文章数量:1300005
I recently changed my pnpm and node versions. After changing, my VSCode integrated terminal is refusing to recognise any pnpm CLI files. I get the following error when I try to run any command starting with pnpm
:
ERROR Failed to switch pnpm to v10.0.0. Looks like pnpm CLI is missing at "/Users/<user>/Library/pnpm/.tools/pnpm/10.0.0/bin" or is incorrect
spawnSync /Users//Library/pnpm/.tools/pnpm/10.0.0/bin/pnpm ENOENT
Even pnpm -v
throws this.
But I can run pnpm commands just fine in the Mac default terminal. I've navigated into the same directory and can run any pnpm
commands.
I'm using ohmyzsh everywhere, in case that's relevant.
After reading this post I checked out the paths with echo $PATH
. There are some discrepancies, but I don't know what that means.
// vscode terminal
/Users/<user>/.nvm/versions/node/v20.18.3/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Users/<user>/Library/pnpm:/Users/<user>/.nvm/versions/node/v20.18.3/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/Users/<user>/Library/Application Support/Code/User/globalStorage/github.copilot-chat/debugCommand
/Users/<user>/Library/pnpm:/Users/<user>/.nvm/versions/node/v20.18.3/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin
本文标签:
版权声明:本文标题:visual studio code - pnpm CLI is missing for VSCode inegrated terminal but not for MacOS default terminal - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741650169a2390426.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论