Error: Not found: python2 is reported when NPM install is executed

  1. To perform:

npm --add-python-to-path='true' --debug install --global windows-build-tools

2.再执行: npm install --global node-gyp

Windows-build-tools Successfully installed Python 2.7

Found a method from the Internet, can usenpm install --global --production --verbose windows-build-tools To solve, however, or hung up.

Finally is loaded by Windows – build – tools install visual studio build tools is slow, have to wait, straight-tempered to dotnet.microsoft.com/download/vi… Download the installation package directly. I downloaded the latest version.

Then use NPM install –global –production [email protected] to specify the version to install.

It’ll be all right soon. The Windows build-Tools installation process is slow and may take a long time to install. It may take a long time to install the Windows build-Tools installation process. It may take a long time to install the Windows build-Tools installation process. It’s faster.