Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Errors installing new modules from NPM registry (using Module Manager)
#2
Some NPM modules contain native code, usually c/c++.
Sometimes they have precompiled binaries, but if they don't, or if binaries require a different version of node.js, Module Manager will trigger binaries compilation using node-gyp.   
node-gyp requires Python and Microsoft Visual Studio (with Desktop Development with C++)

If you look closely at reported error, you will find the part:
    gyp ERR! find Python **********************************************************
    gyp ERR! find Python You need to install the latest version of Python.
    gyp ERR! find Python Node-gyp should be able to find and use Python. If not...

Solution: Please, go to www.python.org, download and install the latest python version. During installation select "Add python to PATH" option. 

You can also find something like this:
    gyp ERR! find VS **************************************************************
    gyp ERR! find VS You need to install the latest version of Visual Studio
    gyp ERR! find VS including the "Desktop development with C++" workload....

Solution: Download and run  Microsoft Visual Studio Build Tools (https://aka.ms/vs/stable/vs_BuildTools.exe) and don't forget to select "Desktop development with C++"  option.

WARNING: You might need to restart NodeActa client or even entire PC after installing Python and MS Build Tools
Reply


Messages In This Thread
RE: Errors installing new modules from NPM - by root - 02-16-2026, 10:39 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)