62๐
โ
This error is related to npm, node-gyp, and Visual Studio 2015, and it has already been fixed in node-gyp@3.4.0. However, npm is still using an older version. Here is a workaround that you can follow:
-
Go to the folder where npm is installed, for example:
C:\Program Files\nodejs\node_modules\npm
-
Open the file
package.json
- Remove the entry for node-gyp in the bundleDependencies section
- Increase the version number of node-gyp to 3.4.0 in the dependencies section
-
Run
npm i
in this directory to install node-gyp@3.4.0 and fix the problem
Related GitHub issues can be found here:
19๐
To update npm, you can use the following command:
npm install npm -g
16๐
An alternative solution that avoids modifying the npm
installation process is to execute the following command before running npm install
:
SET CL=-DDELAYIMP_INSECURE_WRITABLE_HOOKS %CL%
This command sets the environment variable CL
with the value -DDELAYIMP_INSECURE_WRITABLE_HOOKS
, which helps resolve the issue.