Error when update @forge/cli

Hey there,

I am trying to update @forge/cli but i am receiving this error:
npm ERR! code 1
npm ERR! path /usr/local/lib/node_modules/@forge/cli
npm ERR! command failed
npm ERR! command sh -c node -e “process.exitCode = fs.existsSync(’./out/bin/postinstall.js’)” || node ./out/bin/postinstall.js
npm ERR! /usr/local/lib/node_modules/@forge/cli/out/analytics-client/analytics-client.js:48
npm ERR! id: uuid(),
npm ERR! ^
npm ERR!
npm ERR! TypeError: uuid is not a function
npm ERR! at AnalyticsClientReporter.reportSuccess (/usr/local/lib/node_modules/@forge/cli/out/analytics-client/analytics-client.js:48:17)
npm ERR! at Object. (/usr/local/lib/node_modules/@forge/cli/out/bin/postinstall.js:19:25)
npm ERR! at Module._compile (node:internal/modules/cjs/loader:1108:14)
npm ERR! at Object.Module._extensions…js (node:internal/modules/cjs/loader:1137:10)
npm ERR! at Module.load (node:internal/modules/cjs/loader:973:32)
npm ERR! at Function.Module._load (node:internal/modules/cjs/loader:813:14)
npm ERR! at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:76:12)
npm ERR! at node:internal/main/run_main_module:17:47

i tried also npm install -g uuid but it won’t work.

Any help would be appreciated

Thanks
Julian

Try to uninstall Forge CLI first, then reinstall it:

Uninstall

npm uninstall -g @forge/cli

Install

npm install -g @forge/cli