Error on Update of Forge CLI

Hi there,

I just tried to update to Forge CLI version 1.1.0. Unfortunately, I get this error

npm install -g @forge/cli
npm ERR! code ENOENT
npm ERR! syscall chmod
npm ERR! path /Users/jonas/.nvm/versions/node/v12.19.1/lib/node_modules/@forge/cli/out/bin/cli.js
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, chmod '/Users/jonas/.nvm/versions/node/v12.19.1/lib/node_modules/@forge/cli/out/bin/cli.js'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent 

Do you know why this is happening and what I can do to fix it?

1 Like

Have you tried installing on other versions of node? Curious if you hit the same error on a different version.

Maybe try:

> nvm install lts/erbium
> nvm use lts/erbium
> npm install -g @forge/cli

Hey @bentley,
It works! Thanks for the hint. With node version 12.21.0 the update was successful.

1 Like