jetpack
jetpack copied to clipboard
Tools: Changelogger Release fails with cryptic message when pnpm's version is wrong
tools/changelogger-release.sh
fails when pnpm's version is wrong with the following message:
> tools/changelogger-release.sh -p -r 6.4.3 plugins/crm
jq: parse error: Invalid numeric literal at line 1, column 34
By using some debug lines we are able to find the following error:
ERR_PNPM_UNSUPPORTED_ENGINE Unsupported environment (bad pnpm and/or Node.js version) Your pnpm version is incompatible with "/home/gogdzl/dsk/git/avengers/jetpack". Expected version: ^8.6.2 Got: 9.1.1 This is happening because the package's manifest has an engines.pnpm field specified. To fix this issue, install the required pnpm version globally. To install the latest version of pnpm, run "pnpm i -g pnpm". To check your pnpm version, run "pnpm -v".