Error installing @forge/cli onto Windows 10 in enterprise environment

Hello,
we are trying to install the latest Forge-cli-version onto Windows 10 in an enterprise environment and are facing errors that seem not to be addressed by (or related to) the enterprise-guide. After facing issues with node-gyp we tried the installation manually beforehand, but the rebuilding of node-gyp gets started still and the error regards a missing project file from MSBUILD:

1090 verbose stack Error: command failed
1090 verbose stack     at promiseSpawn (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\promise-spawn\lib\index.js:22:22)
1090 verbose stack     at spawnWithShell (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\promise-spawn\lib\index.js:124:10)
1090 verbose stack     at promiseSpawn (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\promise-spawn\lib\index.js:12:12)
1090 verbose stack     at runScriptPkg (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\run-script\lib\run-script-pkg.js:77:13)
1090 verbose stack     at runScript (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\run-script\lib\run-script.js:9:12)
1090 verbose stack     at C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\rebuild.js:329:17
1090 verbose stack     at run (C:\Program Files\nodejs\node_modules\npm\node_modules\promise-call-limit\dist\commonjs\index.js:67:22)
1090 verbose stack     at C:\Program Files\nodejs\node_modules\npm\node_modules\promise-call-limit\dist\commonjs\index.js:84:9
1090 verbose stack     at new Promise (<anonymous>)
1090 verbose stack     at callLimit (C:\Program Files\nodejs\node_modules\npm\node_modules\promise-call-limit\dist\commonjs\index.js:35:69)
1091 verbose pkgid keytar@7.9.0
1092 error code 1
1093 error path C:\Windows\System32\node_modules\@forge\cli\node_modules\keytar
1094 error command failed
1095 error command C:\Windows\system32\cmd.exe /d /s /c prebuild-install || npm run build
1096 error > keytar@7.9.0 build
1096 error > node-gyp rebuild
1096 error
1096 error
1096 error MSBUILD : error MSB1009: Die Projektdatei ist nicht vorhanden.
1096 error Schalter: build\binding.sln

Versions:

  • node 22.14.0
  • python 3.13.2
  • node-gyp 11.0.0
  • VS2022 build tools

Any help would be appreciated!
Thank you

Hey Julia,

Thanks for raising this. Just to clarify, is this the first time you are installing the CLI onto this particular environment, or did a previous version work?

Hi Dylan,
thank you for your response. This is the first time.

Gotcha
I take it you were referring to this guide?

Could you try out these steps. and let me know if that helps?

Hi Dylan,
sorry for my late response, I needed to wait for my colleague. According to him we don’t use a proxy, so the commands for setting one don’t apply to us. He tried clearing the cache and forcing the installation. The result was a different error:

Errors in the logfile:
2849 error gyp ERR! build error
2849 error gyp ERR! stack Error: C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\MSBuild\\Current\\Bin\\MSBuild.exe failed with exit code: 1
2849 error gyp ERR! stack at ChildProcess. (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:216:23)
2849 error gyp ERR! stack at ChildProcess.emit (node:events:518:28)
2849 error gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:293:12)
2849 error gyp ERR! System Windows_NT 10.0.20348
2849 error gyp ERR! command “C:\Program Files\nodejs\node.exe” “C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js” “rebuild”
2849 error gyp ERR! cwd C:\Windows\system32\node_modules@forge\cli\node_modules\keytar
2849 error gyp ERR! node -v v22.14.0
2849 error gyp ERR! node-gyp -v v11.0.0
2849 error gyp ERR! not ok

Can I provide something else?