javascriptwindows-build-tools

error when installing windows-build-tools and nodejsv 18.0.0


With python2.7 and buildtools installed manually. Python is in the path

npm ERR! gyp verb clean removing "build" directory
npm ERR! gyp verb command configure []
npm ERR! gyp verb check python checking for Python executable "python2.7" in the PATH

https://pastebin.com/YseQXVE4


Solution

  • It isn't recommended to install windows-build-tools, as it is deprecated, and there are build tools from the Node.js installer.


    To install it, follow the steps below.

    1. Head to nodejs.org, and download and run the LTS installer.
    2. On the page where it asks you about installing the build tools, check the box.
    3. When the installation has concluded, a PowerShell window will open and run the commands to install the tools.

    EDIT: According to LeMIT's comment,

    A complete uninstallation of Node.js, Python, and Visual Studio (including a registry cleanup) helped me.


    This should install the build tools.