ionic-team / capacitor-barcode-scanner

https://capacitorjs.com/docs/apis/barcode-scanner
MIT License
8 stars 3 forks source link

Open project apear "pnpm: command not found" error in VS Code OUTPUT #21

Closed akira32 closed 3 weeks ago

akira32 commented 3 weeks ago

I open the main folder, and then I see the error in OUTPUT widnows in VS Code. Does someone know how to solve these problems?

> pnpm outdated --json
[error] /bin/sh: pnpm: command not found

> pnpm list --json
[error] /bin/sh: pnpm: command not found

> pnpm outdated --json
[error] /bin/sh: pnpm: command not found

> pnpm list --json
[error] /bin/sh: pnpm: command not found

[error] Unable to determine the framework type for @capacitor/barcode-scanner
akira32 commented 3 weeks ago

I had solved this problem:

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash source ~/.nvm/nvm.sh nvm install node nvm use node npm install -g pnpm