Deploy account fails to detect installed zkapp-cli version in getInstalledCliVersion method if NodeJS.
This usually happens if NodeJS is installed by tools like Volta
If that is the case, We get the following error
TypeError: Cannot read properties of undefined (reading '0')
at hasBreakingChanges (file:///Users/satyam/.volta/tools/image/packages/zkapp-cli/lib/node_modules/zkapp-cli/src/lib/deploy.js:561:26)
Steps to Reproduce
Install NodeJS with Volta or something similar on your machine.
Install zkapp-cli using npm install -g zkapp-cli
Run zk config and then zk deploy command inside a zk project.
System Info
System:
OS: macOS 13.2.1
CPU: (8) arm64 Apple M1
Binaries:
Node: 21.2.0 - ~/.volta/tools/image/node/21.2.0/bin/node
Yarn: 1.22.18 - ~/.volta/tools/image/yarn/1.22.18/bin/yarn
npm: 9.2.0 - ~/.volta/tools/image/npm/9.2.0/bin/npm
npmPackages:
o1js: 0.15.2
npmGlobalPackages:
zkapp-cli: Not Found
Describe the bug
Deploy account fails to detect installed
zkapp-cli
version in getInstalledCliVersion method if NodeJS. This usually happens if NodeJS is installed by tools like VoltaIf that is the case, We get the following error
Steps to Reproduce
zkapp-cli
usingnpm install -g zkapp-cli
zk config
and thenzk deploy
command inside a zk project.System Info
Severity
annoyance
Additional Information
No response