I haven't been able to download the forge CLI, where do i install it. Couldn't find it in the interface?

I haven’t been able to download the forge CLI, where do i install it. Couldn’t find it in the interface?

1 Like

You download it by running the following command in your terminal which should work for all major operating systems (provided you have node installed).

npm install -g @forge/cli

For more detailed instructions, check the docs.

I have node.js installed but still not having access to forge

I have been getting this code errors after following the process, what do i do?


And this also

I’m afraid I can’t offer too much help since I don’t use Windows. Reading the error log, it looks like you need to configure node-gyp. Maybe the following link will help.

The Forge CLI has a dependency on a third-party package called node-gyp GitHub - nodejs/node-gyp: Node.js native addon build tool. Installing node-gyp is slightly more complex than installing regular Node.js packages because it has non-JavaScript dependencies including some components that may need to be provided by your Operating System.

In some situations, the Forge CLI installation process may attempt to dynamically retrieve node-gyp’s native platform dependencies from external repositories, which will fail if you are required to use a local NPM package mirror. Or, the node-gyp installation may fail because it tries to build itself from source but the right build tools are not installed in your local development environment.

In this scenario, you should instead install the pre-built node-gyp dependencies for your operating system as described in the node-gyp instructions: GitHub - nodejs/node-gyp: Node.js native addon build tool.

Specifically on Windows, you need to have Python installed and the Visual C++ Build tools installed, as described in the node-gyp instructions.

After you’ve complete this pre-installation, you should try to install the Forge CLI again.

1 Like