Gyp err find vs missing any windows sdk

I am trying to start about node c/c++ add-on. the node-gyp command got error I have installed vs2019, my command is node-gyp configure --msvs_version=2019 the verbose output is gyp info it work...

I am trying to start about node c/c++ add-on. the node-gyp command got error

I have installed vs2019, my command is

node-gyp configure --msvs_version=2019

the verbose output is

gyp info it worked if it ends with ok
gyp info using node-gyp@5.0.3
gyp info using node@10.16.0 | win32 | x64
gyp info find Python using Python version 2.7.15 found at "C:Usersseact.windows-build-toolspython27python.exe"
gyp ERR! find VS 
gyp ERR! find VS msvs_version was set from command line or npm config
gyp ERR! find VS - looking for Visual Studio version 2019
gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer
gyp ERR! find VS looking for Visual Studio 2015
gyp ERR! find VS - found in "C:Program Files (x86)Microsoft Visual Studio 14.0"
gyp ERR! find VS - could not find MSBuild in registry for this version
gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
gyp ERR! find VS
gyp ERR! find VS valid versions for msvs_version:
gyp ERR! find VS
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.
gyp ERR! find VS For more information consult the documentation at:
gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
gyp ERR! find VS **************************************************************
gyp ERR! find VS
gyp ERR! configure error
gyp ERR! stack Error: Could not find any Visual Studio installation to use
gyp ERR! stack     at VisualStudioFinder.fail (D:Program Filesnode-win-x64node_modulesnode-gyplibfind-visualstudio.js:121:47)
gyp ERR! stack     at findVisualStudio2013 (D:Program Filesnode-win-x64node_modulesnode-gyplibfind-visualstudio.js:74:16)
gyp ERR! stack     at VisualStudioFinder.findVisualStudio2013 (D:Program Filesnode-win-x64node_modulesnode-gyplibfind-visualstudio.js:344:14)       
gyp ERR! stack     at findVisualStudio2015 (D:Program Filesnode-win-x64node_modulesnode-gyplibfind-visualstudio.js:70:14)
gyp ERR! stack     at regSearchKeys (D:Program Filesnode-win-x64node_modulesnode-gyplibfind-visualstudio.js:377:20)
gyp ERR! stack     at regGetValue (D:Program Filesnode-win-x64node_modulesnode-gyplibutil.js:54:7)
gyp ERR! stack     at D:Program Filesnode-win-x64node_modulesnode-gyplibutil.js:33:16
gyp ERR! stack     at ChildProcess.exithandler (child_process.js:301:5)
gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
gyp ERR! stack     at maybeClose (internal/child_process.js:982:16)
gyp ERR! System Windows_NT 10.0.18362
gyp ERR! command "D:\Program Files\node-win-x64\node.exe" "D:\Program Files\node-win-x64\node_modules\node-gyp\bin\node-gyp.js" "configure" "--msvs_version=2019"
gyp ERR! cwd D:Projectslearn_node_ext
gyp ERR! node -v v10.16.0
gyp ERR! node-gyp -v v5.0.3
gyp ERR! not ok

asked Aug 18, 2019 at 3:19

Seact's user avatar

1

You do not have to install Visual Studio, just install the windows build tools:

  1. run CMD as Admin
  2. run npm install --g --production windows-build-tools

This should fix that.

[1]: https://i.stack.imgur.com/31D1U.png

Timothy G.'s user avatar

Timothy G.

5,0896 gold badges29 silver badges43 bronze badges

answered Aug 8, 2020 at 3:02

Ghaith Al-Rawi's user avatar

3

There are 2 aspects to this error. Now in 2022, if you have installed Visual Studio 2022, even after installing Desktop development with C++ or the build tools it still wont work.

Few things you need to do even after installation.
npm config get python should be set to Python 3.x
—> npm config set python C:Python310python.exe

npm config get msvs_version should be using 2022
—> npm config set msvs_version 2022 --global

Additionally you can set
npm config set msbuild_path "C:Program FilesMicrosoft Visual Studio2022CommunityMsbuildCurrentBinMSBuild.exe"

your VCINSTALLDIR ENV variable should be set to C:Program FilesMicrosoft Visual Studio2022CommunityVC

VCINSTALLDIR

In some case it still wont work, then you can follow the additional steps, visit the folder of your Node.js exe installation, should be same even for an nvm node version; https://github.com/nodejs/node-gyp/blob/master/docs/Updating-npm-bundled-node-gyp.md

cd "C:Program Filesnodejs"
cd node_modulesnpmnode_modules@npmclirun-script

npm install node-gyp@latest

Robin's user avatar

answered Jan 21, 2022 at 10:02

STEEL's user avatar

STEELSTEEL

8,2509 gold badges67 silver badges87 bronze badges

5

Open your Visual Studio & then in ‘search box’ search VS 2019 C++ x64/x86 build tools and install then search Desktop development with C++ install it. Hope this helps.

answered Jan 30, 2020 at 10:07

Jay Prakash Thakur's user avatar

2

If you are using Chocolatey, install the following:

choco install visualstudio2019buildtools visualstudio2019-workload-vctools

answered Feb 26, 2021 at 13:16

atwright147's user avatar

atwright147atwright147

3,6554 gold badges29 silver badges57 bronze badges

1

It is because the C++ build tools are not installed. It can be solved by installing VS 2019 C++ x64/x86 build tools in Visual Studio installer:

looks like this

juzraai's user avatar

juzraai

5,5208 gold badges31 silver badges47 bronze badges

answered Aug 18, 2019 at 3:53

Seact's user avatar

SeactSeact

6311 gold badge5 silver badges10 bronze badges

0

Downloading the latest Visual Studio build Tools

https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2019

and running the following command in the ‘Program Files (x86)Microsoft Visual Studio2017BuildTools’ Directory

npm install --g --production windows-build-tools

and Installing node-gyp in the current directory

npm install node-gyp

Worked For me on Windows 10

for more, please visite the official node-gyp installation guide

answered Jun 22, 2021 at 12:23

Ahmad Elswerkey's user avatar

I had to set python path for npm even though I had python on my PATH.

npm config set python /path/to/executable/python

then try npm install again

answered Mar 20, 2021 at 23:11

Sir Von Berker's user avatar

It should be a npm package bug of windows-build-tools.

Step 1: Be sure you installed Visual Studio Code

Step 2: Search %temp% under window search bar (Copy %temp% then press windows button + Ctrl V)

Step 3: Create ‘dd_client_.log.txt’ and enter ‘Closing installer. Return code: 3010.’

Now you should be able to finish the whole process with npm install --global windows-build-tools

answered Dec 17, 2021 at 2:11

seantsang's user avatar

seantsangseantsang

1,0252 gold badges5 silver badges19 bronze badges

In case if someone still has the visual studio installation required error after going through all the steps mentioned above. I had this issue when I was trying to run an electron application. The solution for my issue was simply adding the visual studio to the environment variables after going through all the above steps.

To set the path run the following command on cmd (if possible as admin):

setx VCTargetsPath “C:Program Files (x86)MSBuild15.0″

Note: the path for my visual studio was as in the above. you may have to change it according to your installation.

The software versions I was using are as follows:
nodejs : 14.17.0
OS : windows10 64-bit
Python : 2.7.15 (installed default with node js)
Visual studio : community edition 2019

some of the other things to check is to make sure the python version, msvs_version are set to the correct versions in the npm config.

answered May 25, 2021 at 15:22

user7532054's user avatar

Instead of running 'npm install', run 'npm update' directly in the folder. This solved my issue.

answered Jun 12, 2021 at 0:25

Nicholas Mberev's user avatar

Same issue after upgrading to latest node LTS version. This did the trick for me:

  1. removed node_modules folder
  2. removed package-lock.json file
  3. npm install

answered Apr 8, 2022 at 11:49

Carlos del Río Francés's user avatar

TLDR: Installing the latest LTS version of Node.js via Windows Installer worked for me somehow. Latest LTS Version

Nodejs Latest LTS Version

I tried all the answers from this thread and some other articles as well but nothing was working for me. After spending 6+ hours on this issue, I saw this note on Windows-Build-Tools Github page.

Please note that the official Node.js for Windows installer can now automatically install the required tools. That’s likely a much better option than the module listed here (windows-build-tools).

So I installed the latest LTS version of Node.js via Windows Installer from Node js website as shown in the above image and it worked somehow.

answered May 21, 2022 at 1:54

PR7's user avatar

PR7PR7

1,4381 gold badge11 silver badges24 bronze badges

Solution that worked for me was to install latest Visual Studio Build Tools and then execute following command, taken from node-gyp installation instructions here:

npm config set msvs_version 2017

answered Aug 31, 2022 at 22:05

soulBit's user avatar

soulBitsoulBit

4186 silver badges15 bronze badges

npm install —g —production windows-build-tools

answered Nov 24, 2022 at 12:25

fanqie's user avatar

My working environment: Visual Studio Enterprise 2022, Python 3.11, and Node v18.13.0. I did everything according to steel’s answer, but still got errors. Looks like npm config set msvs_version 2022 --global doesn’t help.

I finally got it working by adding an Environment Variable — GYP_MSVS_VERSION and setting it to 2022.

enter image description here

answered 2 days ago

Weihui Guo's user avatar

Weihui GuoWeihui Guo

3,5114 gold badges32 silver badges56 bronze badges

on my computer works with the next commands

npm install --g --production windows-build-tools
npm install node-gyp
npm audit fix
npm install node-phpass

Tharindu Lakshan's user avatar

answered Nov 5, 2021 at 13:45

Axel Tevez's user avatar

Same issue faced by me with VS 2022 community edition, node 15.x, python 3.10

npm ERR! gyp ERR! find VS You need to install the latest version of Visual Studio
npm ERR! gyp ERR! find VS including the "Desktop development with C++" workload.
npm ERR! gyp ERR! find VS For more information consult the documentation at:
npm ERR! gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows

Issue was due to non-compatible Node version 15.x.x to gyp
and, successfully resolved with downgrading node to 14.17.3 version.

Thanks

answered May 4, 2022 at 14:40

tan js's user avatar

tan jstan js

1341 silver badge9 bronze badges

I had the same problem before, thanks C. Szabo’s answer.

node-gyp use Powershell script to find Visual Studio. You should check

$ExecutionContext.SessionState.LanguageMode

in Powershell. If it return ‘ConstrainedLanguage’, node-gyp will fail to find Visual Studio. Change _PSLockdownPolicy in register can fix this problem, see this answer. (Don’t forget to reboot Windows)

answered Jun 28, 2022 at 6:14

Masson's user avatar

MassonMasson

1074 bronze badges

I also encountered this error. After trying all the suggestions I could find and spending 2 days trying to resolve it, I finally found out the reason it wasn’t working for me was that in my build environment I didn’t have ProgramData env variable defined. After adding «ProgramData»: «C:ProgramData» everything started working like a charm.

When this env var is not defined, for whatever reason, query2.EnumAllInstances() in Find-VisualStudio.cs returns empty enumeration.

Hopefully this will be useful for someone as well.

answered Sep 8, 2022 at 9:09

cbullo's user avatar

My friend creates the project and her node/npm versions are not compatible with mine.
So I try to upgrade my npm versions only. It’s solved the problem.

But some of the dependencies are not working. So I update the node versions, as along with the npm version, will update. It solved almost all problems and errors.

You should find the correct compatible version of node and npm. Here you can find the node version and compatible npm version.

Make sure to check your npm version and node versions are compatible.

answered May 7, 2021 at 2:11

Dulya Perera's user avatar

This issue is not fixed in node-gyp@8.3.0

node-gyp/lib/find-visualstudio.js#getSDK still returns null for Microsoft.VisualStudio.Component.Windows11SDK.22000 in info.packages because the pattern const win10SDKPrefix = 'Microsoft.VisualStudio.Component.Windows10SDK.' doesn’t match.

Logs

```text
gyp info it worked if it ends with ok
gyp verb cli [
gyp verb cli   'e:\sdk\nodejs\node.exe',
gyp verb cli   'd:\0\node_modules\node-gyp\bin\node-gyp.js',
gyp verb cli   '--loglevel=silly',
gyp verb cli   'configure'
gyp verb cli ]
gyp info using node-gyp@8.3.0
gyp info using node@16.11.1 | win32 | x64
gyp verb command configure []
gyp sill find Python runChecks: err = undefined
gyp verb find Python Python is not set from command line or npm configuration
gyp sill find Python runChecks: err = undefined
gyp verb find Python Python is not set from environment variable PYTHON
gyp sill find Python runChecks: err = undefined
gyp verb find Python checking if "python3" can be used
gyp verb find Python - executing "python3" to get executable path
gyp sill find Python execFile: exec = ""python3""
gyp sill find Python execFile: args = [""-c"",""import sys; print(sys.executable);""]
gyp sill find Python execFile: opts = {"env":{"ZES_ENABLE_SYSMAN":"1","windir":"C:\WINDOWS","USERPROFILE":"C:\Users\shf","USERNAME":"shf","USERDOMAIN_ROAMINGPROFILE":"SHF-LAPTOP","USERDOMAIN":"SHF-LAPTOP","TS_NODE_TYPE_CHECK":"0","TS_NODE_TRANSPILE_ONLY":"1","TMP":"C:\Users\shf\AppData\Local\Temp","TEMP":"C:\Users\shf\AppData\Local\Temp","SystemRoot":"C:\WINDOWS","SystemDrive":"C:","PYTHONUTF8":"1","PUBLIC":"C:\Users\Public","PSModulePath":"%ProgramFiles%\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules","PSExecutionPolicyPreference":"Bypass","ProgramW6432":"C:\Program Files","ProgramFiles(x86)":"C:\Program Files (x86)","ProgramFiles":"C:\Program Files","ProgramData":"C:\ProgramData","PROCESSOR_REVISION":"8d01","PROCESSOR_LEVEL":"6","PROCESSOR_IDENTIFIER":"Intel64 Family 6 Model 141 Stepping 1, GenuineIntel","PROCESSOR_ARCHITECTURE":"AMD64","PATHEXT":".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PYW","Path":".\;.\node_modules\.bin;C:\Windows\System32;C:\Windows;C:\Windows\System32\OpenSSH\;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;e:\sdk\git\cmd;e:\sdk\nodejs;C:\Users\shf\AppData\Roaming\npm;e:\sdk\python\Scripts\;e:\sdk\python;C:\Program Files\dotnet\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Users\shf\AppData\Local\Microsoft\WindowsApps;E:\sdk\nodejs\;","OS":"Windows_NT","OneDriveConsumer":"C:\Users\shf\OneDrive","OneDrive":"C:\Users\shf\OneDrive","NUMBER_OF_PROCESSORS":"16","NO_UPDATE_NOTIFIER":"1","NODE_EXTRA_CA_CERTS":"d:/0/cfg/my-root-cas.pem","NODE_ENV":"development","LOGONSERVER":"\\SHF-LAPTOP","LOCALAPPDATA":"C:\Users\shf\AppData\Local","HOMEPATH":"\Users\shf","HOMEDRIVE":"C:","file.encoding":"UTF-8","DriverData":"C:\Windows\System32\Drivers\DriverData","configsetroot":"C:\WINDOWS\ConfigSetRoot","ConEmuWorkDrive":"d:","ConEmuWorkDir":"d:\winax","ConEmuServerPID":"28984","ConEmuPID":"9420","ConEmuPalette":"<Current color scheme>","ConEmuIsAdmin":"ADMIN","ConEmuHWND":"0x0001032C","ConEmuHooks":"Enabled","ConEmuDrive":"C:","ConEmuDrawHWND":"0x001E1B64","ConEmuDir":"C:\Program Files\ConEmu","ConEmuConfig":"","ConEmuCfgDir":"C:\Program Files\ConEmu","ConEmuBuild":"210912","ConEmuBaseDirShort":"C:\PROGRA~1\ConEmu\ConEmu","ConEmuBaseDir":"C:\Program Files\ConEmu\ConEmu","ConEmuBackHWND":"0x002F1D50","ConEmuArgs2":"-","ConEmuArgs":"","ConEmuAnsiLog":"","ConEmuANSI":"ON","ComSpec":"C:\WINDOWS\system32\cmd.exe","COMPUTERNAME":"SHF-LAPTOP","CommonProgramW6432":"C:\Program Files\Common Files","CommonProgramFiles(x86)":"C:\Program Files (x86)\Common Files","CommonProgramFiles":"C:\Program Files\Common Files","APPDATA":"C:\Users\shf\AppData\Roaming","ANSICON_DEF":"7","ANSICON":"315x3000 (315x77)","ALLUSERSPROFILE":"C:\ProgramData","TERM":"dumb"},"shell":true}
gyp sill find Python execFile result: err = "Error: Command failed: "python3" "-c" "import sys; print(sys.executable);"nPython was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.rnn    at ChildProcess.exithandler (node:child_process:397:12)n    at ChildProcess.emit (node:events:390:28)n    at maybeClose (node:internal/child_process:1064:16)n    at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)"
gyp sill find Python execFile result: stdout = ""
gyp sill find Python execFile result: stderr = "Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.rn"
gyp verb find Python - "python3" is not in PATH or produced an error
gyp sill find Python runChecks: err = "Error: Command failed: "python3" "-c" "import sys; print(sys.executable);"nPython was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.rnn    at ChildProcess.exithandler (node:child_process:397:12)n    at ChildProcess.emit (node:events:390:28)n    at maybeClose (node:internal/child_process:1064:16)n    at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)"
gyp verb find Python checking if "python" can be used
gyp verb find Python - executing "python" to get executable path
gyp sill find Python execFile: exec = ""python""
gyp sill find Python execFile: args = [""-c"",""import sys; print(sys.executable);""]
gyp sill find Python execFile: opts = {"env":{"ZES_ENABLE_SYSMAN":"1","windir":"C:\WINDOWS","USERPROFILE":"C:\Users\shf","USERNAME":"shf","USERDOMAIN_ROAMINGPROFILE":"SHF-LAPTOP","USERDOMAIN":"SHF-LAPTOP","TS_NODE_TYPE_CHECK":"0","TS_NODE_TRANSPILE_ONLY":"1","TMP":"C:\Users\shf\AppData\Local\Temp","TEMP":"C:\Users\shf\AppData\Local\Temp","SystemRoot":"C:\WINDOWS","SystemDrive":"C:","PYTHONUTF8":"1","PUBLIC":"C:\Users\Public","PSModulePath":"%ProgramFiles%\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules","PSExecutionPolicyPreference":"Bypass","ProgramW6432":"C:\Program Files","ProgramFiles(x86)":"C:\Program Files (x86)","ProgramFiles":"C:\Program Files","ProgramData":"C:\ProgramData","PROCESSOR_REVISION":"8d01","PROCESSOR_LEVEL":"6","PROCESSOR_IDENTIFIER":"Intel64 Family 6 Model 141 Stepping 1, GenuineIntel","PROCESSOR_ARCHITECTURE":"AMD64","PATHEXT":".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PYW","Path":".\;.\node_modules\.bin;C:\Windows\System32;C:\Windows;C:\Windows\System32\OpenSSH\;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;e:\sdk\git\cmd;e:\sdk\nodejs;C:\Users\shf\AppData\Roaming\npm;e:\sdk\python\Scripts\;e:\sdk\python;C:\Program Files\dotnet\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Users\shf\AppData\Local\Microsoft\WindowsApps;E:\sdk\nodejs\;","OS":"Windows_NT","OneDriveConsumer":"C:\Users\shf\OneDrive","OneDrive":"C:\Users\shf\OneDrive","NUMBER_OF_PROCESSORS":"16","NO_UPDATE_NOTIFIER":"1","NODE_EXTRA_CA_CERTS":"d:/0/cfg/my-root-cas.pem","NODE_ENV":"development","LOGONSERVER":"\\SHF-LAPTOP","LOCALAPPDATA":"C:\Users\shf\AppData\Local","HOMEPATH":"\Users\shf","HOMEDRIVE":"C:","file.encoding":"UTF-8","DriverData":"C:\Windows\System32\Drivers\DriverData","configsetroot":"C:\WINDOWS\ConfigSetRoot","ConEmuWorkDrive":"d:","ConEmuWorkDir":"d:\winax","ConEmuServerPID":"28984","ConEmuPID":"9420","ConEmuPalette":"<Current color scheme>","ConEmuIsAdmin":"ADMIN","ConEmuHWND":"0x0001032C","ConEmuHooks":"Enabled","ConEmuDrive":"C:","ConEmuDrawHWND":"0x001E1B64","ConEmuDir":"C:\Program Files\ConEmu","ConEmuConfig":"","ConEmuCfgDir":"C:\Program Files\ConEmu","ConEmuBuild":"210912","ConEmuBaseDirShort":"C:\PROGRA~1\ConEmu\ConEmu","ConEmuBaseDir":"C:\Program Files\ConEmu\ConEmu","ConEmuBackHWND":"0x002F1D50","ConEmuArgs2":"-","ConEmuArgs":"","ConEmuAnsiLog":"","ConEmuANSI":"ON","ComSpec":"C:\WINDOWS\system32\cmd.exe","COMPUTERNAME":"SHF-LAPTOP","CommonProgramW6432":"C:\Program Files\Common Files","CommonProgramFiles(x86)":"C:\Program Files (x86)\Common Files","CommonProgramFiles":"C:\Program Files\Common Files","APPDATA":"C:\Users\shf\AppData\Roaming","ANSICON_DEF":"7","ANSICON":"315x3000 (315x77)","ALLUSERSPROFILE":"C:\ProgramData","TERM":"dumb"},"shell":true}
gyp sill find Python execFile result: err = null
gyp sill find Python execFile result: stdout = "e:\sdk\python\python.exern"
gyp sill find Python execFile result: stderr = ""
gyp verb find Python - executable path is "e:sdkpythonpython.exe"
gyp verb find Python - executing "e:sdkpythonpython.exe" to get version
gyp sill find Python execFile: exec = "e:\sdk\python\python.exe"
gyp sill find Python execFile: args = ["-c","import sys; print("%s.%s.%s" % sys.version_info[:3]);"]
gyp sill find Python execFile: opts = {"env":{"ZES_ENABLE_SYSMAN":"1","windir":"C:\WINDOWS","USERPROFILE":"C:\Users\shf","USERNAME":"shf","USERDOMAIN_ROAMINGPROFILE":"SHF-LAPTOP","USERDOMAIN":"SHF-LAPTOP","TS_NODE_TYPE_CHECK":"0","TS_NODE_TRANSPILE_ONLY":"1","TMP":"C:\Users\shf\AppData\Local\Temp","TEMP":"C:\Users\shf\AppData\Local\Temp","SystemRoot":"C:\WINDOWS","SystemDrive":"C:","PYTHONUTF8":"1","PUBLIC":"C:\Users\Public","PSModulePath":"%ProgramFiles%\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules","PSExecutionPolicyPreference":"Bypass","ProgramW6432":"C:\Program Files","ProgramFiles(x86)":"C:\Program Files (x86)","ProgramFiles":"C:\Program Files","ProgramData":"C:\ProgramData","PROCESSOR_REVISION":"8d01","PROCESSOR_LEVEL":"6","PROCESSOR_IDENTIFIER":"Intel64 Family 6 Model 141 Stepping 1, GenuineIntel","PROCESSOR_ARCHITECTURE":"AMD64","PATHEXT":".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PYW","Path":".\;.\node_modules\.bin;C:\Windows\System32;C:\Windows;C:\Windows\System32\OpenSSH\;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;e:\sdk\git\cmd;e:\sdk\nodejs;C:\Users\shf\AppData\Roaming\npm;e:\sdk\python\Scripts\;e:\sdk\python;C:\Program Files\dotnet\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Users\shf\AppData\Local\Microsoft\WindowsApps;E:\sdk\nodejs\;","OS":"Windows_NT","OneDriveConsumer":"C:\Users\shf\OneDrive","OneDrive":"C:\Users\shf\OneDrive","NUMBER_OF_PROCESSORS":"16","NO_UPDATE_NOTIFIER":"1","NODE_EXTRA_CA_CERTS":"d:/0/cfg/my-root-cas.pem","NODE_ENV":"development","LOGONSERVER":"\\SHF-LAPTOP","LOCALAPPDATA":"C:\Users\shf\AppData\Local","HOMEPATH":"\Users\shf","HOMEDRIVE":"C:","file.encoding":"UTF-8","DriverData":"C:\Windows\System32\Drivers\DriverData","configsetroot":"C:\WINDOWS\ConfigSetRoot","ConEmuWorkDrive":"d:","ConEmuWorkDir":"d:\winax","ConEmuServerPID":"28984","ConEmuPID":"9420","ConEmuPalette":"<Current color scheme>","ConEmuIsAdmin":"ADMIN","ConEmuHWND":"0x0001032C","ConEmuHooks":"Enabled","ConEmuDrive":"C:","ConEmuDrawHWND":"0x001E1B64","ConEmuDir":"C:\Program Files\ConEmu","ConEmuConfig":"","ConEmuCfgDir":"C:\Program Files\ConEmu","ConEmuBuild":"210912","ConEmuBaseDirShort":"C:\PROGRA~1\ConEmu\ConEmu","ConEmuBaseDir":"C:\Program Files\ConEmu\ConEmu","ConEmuBackHWND":"0x002F1D50","ConEmuArgs2":"-","ConEmuArgs":"","ConEmuAnsiLog":"","ConEmuANSI":"ON","ComSpec":"C:\WINDOWS\system32\cmd.exe","COMPUTERNAME":"SHF-LAPTOP","CommonProgramW6432":"C:\Program Files\Common Files","CommonProgramFiles(x86)":"C:\Program Files (x86)\Common Files","CommonProgramFiles":"C:\Program Files\Common Files","APPDATA":"C:\Users\shf\AppData\Roaming","ANSICON_DEF":"7","ANSICON":"315x3000 (315x77)","ALLUSERSPROFILE":"C:\ProgramData","TERM":"dumb"},"shell":false}
gyp sill find Python execFile result: err = null
gyp sill find Python execFile result: stdout = "3.10.0rn"
gyp sill find Python execFile result: stderr = ""
gyp verb find Python - version is "3.10.0"
gyp info find Python using Python version 3.10.0 found at "e:sdkpythonpython.exe"
gyp verb get node dir no --target version specified, falling back to host node version: 16.11.1
gyp verb command install [ '16.11.1' ]
gyp verb install input version string "16.11.1"
gyp verb install installing version: 16.11.1
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version is already installed, need to check "installVersion"
gyp verb got "installVersion" 9
gyp verb needs "installVersion" 9
gyp verb install version is good
gyp verb get node dir target node version installed: 16.11.1
gyp verb build dir attempting to create "build" dir: d:winaxbuild
gyp verb build dir "build" dir needed to be created? No
gyp verb find VS msvs_version not set from command line or npm config
gyp verb find VS VCINSTALLDIR not set, not running in VS Command Prompt
gyp sill find VS Running C:WINDOWSSystem32WindowsPowerShellv1.0powershell.exe [
gyp sill find VS   '-ExecutionPolicy',
gyp sill find VS   'Unrestricted',
gyp sill find VS   '-NoProfile',
gyp sill find VS   '-Command',
gyp sill find VS   "&{Add-Type -Path 'd:\0\node_modules\node-gyp\lib\Find-VisualStudio.cs';[VisualStudioConfiguration.Main]::PrintJson()}"
gyp sill find VS ]
gyp sill find VS PS stderr = ""
gyp sill find VS processing installation: "C:Program Files (x86)Microsoft Visual Studio2019Community"
gyp sill find VS - version match = ["16.11.31729.503","16","11"]
gyp sill find VS - found VC.MSBuild.Base
gyp sill find VS - found VC.Tools.x86.x64
gyp sill find VS vsInfo: [
gyp sill find VS   {
gyp sill find VS     version: '16.11.31729.503',
gyp sill find VS     versionMajor: 16,
gyp sill find VS     versionMinor: 11,
gyp sill find VS     versionYear: 2019,
gyp sill find VS     path: 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community',
gyp sill find VS     msBuild: 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe',
gyp sill find VS     toolset: 'v142',
gyp sill find VS     sdk: null
gyp sill find VS   }
gyp sill find VS ]
gyp verb find VS checking VS2019 (16.11.31729.503) found at:
gyp verb find VS "C:Program Files (x86)Microsoft Visual Studio2019Community"
gyp verb find VS - found "Visual Studio C++ core features"
gyp verb find VS - found VC++ toolset: v142
gyp verb find VS - missing any Windows SDK
gyp verb find VS could not find a version of Visual Studio 2017 or newer to use
gyp verb find VS looking for Visual Studio 2015
gyp sill reg-search looking for "14.0" in "HKLM\Software\Microsoft\VisualStudio\SxS\VC7"
gyp sill reg running C:WINDOWSSystem32reg.exe [
gyp sill reg   'query',
gyp sill reg   'HKLM\Software\Microsoft\VisualStudio\SxS\VC7',
gyp sill reg   '/v',
gyp sill reg   '14.0'
gyp sill reg ]
gyp sill reg reg.exe stdout = ""
gyp sill reg reg.exe err = "Error: Command failed: C:\WINDOWS\System32\reg.exe query HKLM\Software\Microsoft\VisualStudio\SxS\VC7 /v 14.0n����: ϵͳ�Ҳ���ָ����ע������ֵ��rnn    at ChildProcess.exithandler (node:child_process:397:12)n    at ChildProcess.emit (node:events:390:28)n    at
 maybeClose (node:internal/child_process:1064:16)n    at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)"
gyp sill reg reg.exe stderr = "����: ϵͳ�Ҳ���ָ����ע������ֵ��rn"
gyp sill reg-search looking for "14.0" in "HKLM\Software\Wow6432Node\Microsoft\VisualStudio\SxS\VC7"
gyp sill reg running C:WINDOWSSystem32reg.exe [
gyp sill reg   'query',
gyp sill reg   'HKLM\Software\Wow6432Node\Microsoft\VisualStudio\SxS\VC7',
gyp sill reg   '/v',
gyp sill reg   '14.0'
gyp sill reg ]
gyp sill reg reg.exe stdout = ""
gyp sill reg reg.exe err = "Error: Command failed: C:\WINDOWS\System32\reg.exe query HKLM\Software\Wow6432Node\Microsoft\VisualStudio\SxS\VC7 /v 14.0n����: ϵͳ�Ҳ���ָ����ע������ֵ��rnn    at ChildProcess.exithandler (node:child_process:397:12)n    at ChildProcess.emit (node:events:39
0:28)n    at maybeClose (node:internal/child_process:1064:16)n    at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)"
gyp sill reg reg.exe stderr = "����: ϵͳ�Ҳ���ָ����ע������ֵ��rn"
gyp verb find VS - not found
gyp verb find VS not looking for VS2013 as it is only supported up to Node.js 8
gyp ERR! find VS
gyp ERR! find VS msvs_version not set from command line or npm config
gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
gyp ERR! find VS checking VS2019 (16.11.31729.503) found at:
gyp ERR! find VS "C:Program Files (x86)Microsoft Visual Studio2019Community"
gyp ERR! find VS - found "Visual Studio C++ core features"
gyp ERR! find VS - found VC++ toolset: v142
gyp ERR! find VS - missing any Windows SDK
gyp ERR! find VS could not find a version of Visual Studio 2017 or newer to use
gyp ERR! find VS looking for Visual Studio 2015
gyp ERR! find VS - not found
gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
gyp ERR! find VS
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.
gyp ERR! find VS For more information consult the documentation at:
gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
gyp ERR! find VS **************************************************************
gyp ERR! find VS
gyp ERR! configure error
gyp ERR! stack Error: Could not find any Visual Studio installation to use
gyp ERR! stack     at VisualStudioFinder.fail (d:node_modulesnode-gyplibfind-visualstudio.js:121:47)
gyp ERR! stack     at d:node_modulesnode-gyplibfind-visualstudio.js:74:16
gyp ERR! stack     at VisualStudioFinder.findVisualStudio2013 (d:node_modulesnode-gyplibfind-visualstudio.js:351:14)
gyp ERR! stack     at d:node_modulesnode-gyplibfind-visualstudio.js:70:14
gyp ERR! stack     at d:node_modulesnode-gyplibfind-visualstudio.js:372:16
gyp ERR! stack     at d:node_modulesnode-gyplibutil.js:54:7
gyp ERR! stack     at d:node_modulesnode-gyplibutil.js:33:16
gyp ERR! stack     at ChildProcess.exithandler (node:child_process:404:5)
gyp ERR! stack     at ChildProcess.emit (node:events:390:28)
gyp ERR! stack     at maybeClose (node:internal/child_process:1064:16)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)
gyp ERR! System Windows_NT 10.0.22000
gyp ERR! command "e:\sdk\nodejs\node.exe" "d:\0\node_modules\node-gyp\bin\node-gyp.js" "--loglevel=silly" "configure"
gyp ERR! cwd d:winax
gyp ERR! node -v v16.11.1
gyp ERR! node-gyp -v v8.3.0
gyp ERR! not ok
```

#node.js #visual-studio #parceljs

Вопрос:

Я пытаюсь установить пакет-пакет, используя yarn и npm. моя версия yarn 1.22.11 : версия npm : 7.20.2 windows10 : 19043.1110

Я натыкаюсь на :

 npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@7.1.2
npm ERR! gyp info using node@16.5.0 | win32 | x64
npm ERR! gyp info find Python using Python version 2.7.15 found at "C:Usershypo.windows-build-toolspython27python.exe"
npm ERR! gyp ERR! find VS
npm ERR! gyp ERR! find VS msvs_version was set from command line or npm config
npm ERR! gyp ERR! find VS - looking for Visual Studio version 2015
npm ERR! gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
npm ERR! gyp ERR! find VS checking VS2017 (15.9.28307.1585) found at:
npm ERR! gyp ERR! find VS "C:Program Files (x86)Microsoft Visual Studio2017Community"
npm ERR! gyp ERR! find VS - found "Visual Studio C   core features"
npm ERR! gyp ERR! find VS - found VC   toolset: v141
npm ERR! gyp ERR! find VS - found Windows SDK: 10.0.17763.0
npm ERR! gyp ERR! find VS - msvs_version does not match this version
npm ERR! gyp ERR! find VS could not find a version of Visual Studio 2017 or newer to use
npm ERR! gyp ERR! find VS looking for Visual Studio 2015
npm ERR! gyp ERR! find VS - not found
npm ERR! gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
npm ERR! gyp ERR! find VS
npm ERR! gyp ERR! find VS valid versions for msvs_version:
npm ERR! gyp ERR! find VS - "2017"
npm ERR! gyp ERR! find VS - "C:Program Files (x86)Microsoft Visual Studio2017Community"
npm ERR! gyp ERR! find VS
npm ERR! gyp ERR! find VS **************************************************************
npm ERR! gyp ERR! find VS You need to install the latest version of Visual Studio
npm ERR! gyp ERR! find VS including the "Desktop development with C  " workload.
npm ERR! gyp ERR! find VS For more information consult the documentation at:
npm ERR! gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
npm ERR! gyp ERR! find VS **************************************************************
npm ERR! gyp ERR! find VS
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: Could not find any Visual Studio installation to use
npm ERR! gyp ERR! stack     at VisualStudioFinder.fail (C:UsershypoAppDataRoamingnpmnode_modulesnpmnode_modulesnode-gyplibfind-visualstudio.js:121:47)
npm ERR! gyp ERR! stack     at C:UsershypoAppDataRoamingnpmnode_modulesnpmnode_modulesnode-gyplibfind-visualstudio.js:74:16
npm ERR! gyp ERR! stack     at VisualStudioFinder.findVisualStudio2013 (C:UsershypoAppDataRoamingnpmnode_modulesnpmnode_modulesnode-gyplibfind-visualstudio.js:351:14)
npm ERR! gyp ERR! stack     at C:UsershypoAppDataRoamingnpmnode_modulesnpmnode_modulesnode-gyplibfind-visualstudio.js:70:14
npm ERR! gyp ERR! stack     at C:UsershypoAppDataRoamingnpmnode_modulesnpmnode_modulesnode-gyplibfind-visualstudio.js:372:16
npm ERR! gyp ERR! stack     at C:UsershypoAppDataRoamingnpmnode_modulesnpmnode_modulesnode-gyplibutil.js:54:7
npm ERR! gyp ERR! stack     at C:UsershypoAppDataRoamingnpmnode_modulesnpmnode_modulesnode-gyplibutil.js:33:16
npm ERR! gyp ERR! stack     at ChildProcess.exithandler (node:child_process:404:5)
npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:394:28)
npm ERR! gyp ERR! stack     at maybeClose (node:internal/child_process:1067:16)
npm ERR! gyp ERR! System Windows_NT 10.0.19043
npm ERR! gyp ERR! command "C:Program Filesnodejsnode.exe" "C:UsershypoAppDataRoamingnpmnode_modulesnpmnode_modulesnode-gypbinnode-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd C:UsershypoAppDataRoamingnpmnode_modulesparcel-bundlernode_modulesdeasync
npm ERR! gyp ERR! node -v v16.5.0
npm ERR! gyp ERR! node-gyp -v v7.1.2
npm ERR! gyp ERR! not ok
npm ERR! Build failed
 

Что я сделал до сих пор?
установил установщик visual studio и загрузил 2017v следующим образом :

введите описание изображения здесь

Также я скачал visual studio 2019 с полными опциями, и ошибка сохраняется.

 npm install --g --production windows-build-tools
 

застревает на полпути и должен остановить его вручную.

Как я могу установить посылку на свой компьютер?

Комментарии:

1. В конце концов я сдался.

Ответ №1:

Вы, вероятно, не хотите использовать parcel-bundler пакет — это устаревшая версия пакета v1. Может быть, попробовать еще раз с parcel пакетом, версией 2.0.0 ?

Комментарии:

1. Нет, приятель, к сожалению, это не мой путь. Я совсем отказался от этого.

Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Jeffrey Holcomb

seal-mask

When running npm install, it gets to a certain point in the process where it causes a cascade of errors and I can’t really tell what is going on. I’ve pasted the errors from the terminal below:

npm ERR! code 1
npm ERR! path C:UsersjeffhDocumentsDev Stuffrest-apinode_modulesbcrypt
npm ERR! command failed
npm ERR! command C:WINDOWSsystem32cmd.exe /d /s /c node-pre-gyp install --fallback-to-build
npm ERR! Failed to execute 'C:Program Files (x86)nodejsnode.exe C:UsersjeffhAppDataRoamingnpmnode_modulesnpmnode_modulesnode-gypbinnode-gyp.js configure --fallback-to-build --module=C:UsersjeffhDocumentsDev Stuffrest-apinode_modulesbcryptlibbindingnapi-v3bcrypt_lib.node --module_name=bcrypt_lib --module_path=C:UsersjeffhDocumentsDev Stuffrest-apinode_modulesbcryptlibbindingnapi-v3 --napi_version=7 --node_abi_napi=napi --napi_build_version=3 --node_napi_label=napi-v3' (1)
npm ERR! node-pre-gyp info it worked if it ends with ok
npm ERR! node-pre-gyp info using node-pre-gyp@1.0.5
npm ERR! node-pre-gyp info using node@14.16.1 | win32 | ia32
npm ERR! node-pre-gyp info check checked for "C:UsersjeffhDocumentsDev Stuffrest-apinode_modulesbcryptlibbindingnapi-v3bcrypt_lib.node" (not found)
npm ERR! node-pre-gyp http GET https://github.com/kelektiv/node.bcrypt.js/releases/download/v5.0.1/bcrypt_lib-v5.0.1-napi-v3-win32-ia32-unknown.tar.gz
npm ERR! node-pre-gyp ERR! install response status 403 Forbidden on https://github.com/kelektiv/node.bcrypt.js/releases/download/v5.0.1/bcrypt_lib-v5.0.1-napi-v3-win32-ia32-unknown.tar.gz
npm ERR! node-pre-gyp WARN Pre-built binaries not installable for bcrypt@5.0.1 and node@14.16.1 (node-v83 ABI, unknown) (falling back to source compile with node-gyp)
npm ERR! node-pre-gyp WARN Hit error response status 403 Forbidden on https://github.com/kelektiv/node.bcrypt.js/releases/download/v5.0.1/bcrypt_lib-v5.0.1-napi-v3-win32-ia32-unknown.tar.gz
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@7.1.2
npm ERR! gyp info using node@14.16.1 | win32 | ia32
npm ERR! gyp info ok
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@7.1.2
npm ERR! gyp info using node@14.16.1 | win32 | ia32
npm ERR! gyp info find Python using Python version 3.9.7 found at "C:UsersjeffhAppDataLocalMicrosoftWindowsAppsPythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0python.exe"
npm ERR! gyp ERR! find VS
npm ERR! gyp ERR! find VS msvs_version not set from command line or npm config
npm ERR! gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
npm ERR! gyp ERR! find VS checking VS2019 (16.7.30406.217) found at:
npm ERR! gyp ERR! find VS "C:Program Files (x86)Microsoft Visual Studio2019Community"
npm ERR! gyp ERR! find VS - found "Visual Studio C++ core features"
npm ERR! gyp ERR! find VS - found VC++ toolset: v142
npm ERR! gyp ERR! find VS - missing any Windows SDK
npm ERR! gyp ERR! find VS could not find a version of Visual Studio 2017 or newer to use
npm ERR! gyp ERR! find VS looking for Visual Studio 2015
npm ERR! gyp ERR! find VS - not found
npm ERR! gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
npm ERR! gyp ERR! find VS
npm ERR! gyp ERR! find VS **************************************************************
npm ERR! gyp ERR! find VS You need to install the latest version of Visual Studio
npm ERR! gyp ERR! find VS including the "Desktop development with C++" workload.
npm ERR! gyp ERR! find VS For more information consult the documentation at:
npm ERR! gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
npm ERR! gyp ERR! find VS **************************************************************
npm ERR! gyp ERR! find VS
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: Could not find any Visual Studio installation to use
npm ERR! gyp ERR! stack     at VisualStudioFinder.fail (C:UsersjeffhAppDataRoamingnpmnode_modulesnpmnode_modulesnode-gyplibfind-visualstudio.js:121:47)
npm ERR! gyp ERR! stack     at C:UsersjeffhAppDataRoamingnpmnode_modulesnpmnode_modulesnode-gyplibfind-visualstudio.js:74:16
npm ERR! gyp ERR! stack     at VisualStudioFinder.findVisualStudio2013 (C:UsersjeffhAppDataRoamingnpmnode_modulesnpmnode_modulesnode-gyplibfind-visualstudio.js:351:14)
npm ERR! gyp ERR! stack     at C:UsersjeffhAppDataRoamingnpmnode_modulesnpmnode_modulesnode-gyplibfind-visualstudio.js:70:14
npm ERR! gyp ERR! stack     at C:UsersjeffhAppDataRoamingnpmnode_modulesnpmnode_modulesnode-gyplibfind-visualstudio.js:372:16
npm ERR! gyp ERR! stack     at C:UsersjeffhAppDataRoamingnpmnode_modulesnpmnode_modulesnode-gyplibutil.js:54:7
npm ERR! gyp ERR! stack     at C:UsersjeffhAppDataRoamingnpmnode_modulesnpmnode_modulesnode-gyplibutil.js:33:16
npm ERR! gyp ERR! stack     at ChildProcess.exithandler (child_process.js:315:5)
npm ERR! gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
npm ERR! gyp ERR! stack     at maybeClose (internal/child_process.js:1048:16)
npm ERR! gyp ERR! System Windows_NT 10.0.19042
npm ERR! gyp ERR! command "C:\Program Files (x86)\nodejs\node.exe" "C:\Users\jeffh\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\Users\jeffh\Documents\Dev Stuff\rest-api\node_modules\bcrypt\lib\binding\napi-v3\bcrypt_lib.node" "--module_name=bcrypt_lib" "--module_path=C:\Users\jeffh\Documents\Dev Stuff\rest-api\node_modules\bcrypt\lib\binding\napi-v3" "--napi_version=7" "--node_abi_napi=napi" "--napi_build_version=3" "--node_napi_label=napi-v3"
npm ERR! gyp ERR! cwd C:UsersjeffhDocumentsDev Stuffrest-apinode_modulesbcrypt
npm ERR! gyp ERR! node -v v14.16.1
npm ERR! gyp ERR! node-gyp -v v7.1.2
npm ERR! gyp ERR! not ok
npm ERR! node-pre-gyp ERR! build error
npm ERR! node-pre-gyp ERR! stack Error: Failed to execute 'C:Program Files (x86)nodejsnode.exe C:UsersjeffhAppDataRoamingnpmnode_modulesnpmnode_modulesnode-gypbinnode-gyp.js configure --fallback-to-build --module=C:UsersjeffhDocumentsDev Stuffrest-apinode_modulesbcryptlibbindingnapi-v3bcrypt_lib.node --module_name=bcrypt_lib --module_path=C:UsersjeffhDocumentsDev Stuffrest-apinode_modulesbcryptlibbindingnapi-v3 --napi_version=7 --node_abi_napi=napi --napi_build_version=3 --node_napi_label=napi-v3' (1)
npm ERR! node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (C:UsersjeffhDocumentsDev Stuffrest-apinode_modules@mapboxnode-pre-gyplibutilcompile.js:89:23)
npm ERR! node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
npm ERR! node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:1048:16)
npm ERR! node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
npm ERR! node-pre-gyp ERR! System Windows_NT 10.0.19042
npm ERR! node-pre-gyp ERR! command "C:\Program Files (x86)\nodejs\node.exe" "C:\Users\jeffh\Documents\Dev Stuff\rest-api\node_modules\@mapbox\node-pre-gyp\bin\node-pre-gyp" "install" "--fallback-to-build"
npm ERR! node-pre-gyp ERR! cwd C:UsersjeffhDocumentsDev Stuffrest-apinode_modulesbcrypt
npm ERR! node-pre-gyp ERR! node -v v14.16.1
npm ERR! node-pre-gyp ERR! node-pre-gyp -v v1.0.5
npm ERR! node-pre-gyp ERR! not ok

npm ERR! A complete log of this run can be found in:
npm ERR!     C:UsersjeffhAppDataLocalnpm-cache_logs2021-09-21T00_55_49_910Z-debug.log

1 Answer

Tomas Schaffer

Hi try to execute in cmd line this «npm install —g —production windows-build-tools» maybe it helps and after execute npm install

Hi.

I’m looking to apply a custom CSS to our SPO sites, to apply company theming. I came across

https://github.com/pnp/sp-dev-fx-extensions/tree/master/samples/react-application-injectcss, which looks promising, but I’m having some issues. 

  1. According to the documentation, I thought that simply uploading the custom CSS file would suffice, but apparently it doesn’t (unless I’m doing something wrong). Have anyone gotten this to work?
  2. As a plan B, I though I’d build and deploy the SPFx project, just in case this indeed is a prerequisite. I’ve got Visual Studio 2019 installed, but it looks like the SPFx project isn’t compatible with this version: 
gyp ERR! find VS msvs_version not set from command line or npm config
gyp ERR! find VS running in VS Command Prompt, installation path is:
gyp ERR! find VS "C:Program Files (x86)Microsoft Visual Studio2017Professional"
gyp ERR! find VS - will only use this version
gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer
gyp ERR! find VS looking for Visual Studio 2015
gyp ERR! find VS - not found
gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
gyp ERR! find VS
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.
gyp ERR! find VS For more information consult the documentation at:
gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
gyp ERR! find VS **************************************************************
gyp ERR! find VS
gyp ERR! configure error
gyp ERR! stack Error: Could not find any Visual Studio installation to use
gyp ERR! stack     at VisualStudioFinder.fail (C:Program Filesnodejsnode_modulesnpmnode_modulesnode-gyplibfind-visualstudio.js:121:47)
gyp ERR! stack     at C:Program Filesnodejsnode_modulesnpmnode_modulesnode-gyplibfind-visualstudio.js:74:16
gyp ERR! stack     at VisualStudioFinder.findVisualStudio2013 (C:Program Filesnodejsnode_modulesnpmnode_modulesnode-gyplibfind-visualstudio.js:351:14)
gyp ERR! stack     at C:Program Filesnodejsnode_modulesnpmnode_modulesnode-gyplibfind-visualstudio.js:70:14
gyp ERR! stack     at C:Program Filesnodejsnode_modulesnpmnode_modulesnode-gyplibfind-visualstudio.js:372:16
gyp ERR! stack     at C:Program Filesnodejsnode_modulesnpmnode_modulesnode-gyplibutil.js:54:7
gyp ERR! stack     at C:Program Filesnodejsnode_modulesnpmnode_modulesnode-gyplibutil.js:33:16
gyp ERR! stack     at ChildProcess.exithandler (child_process.js:310:5)
gyp ERR! stack     at ChildProcess.emit (events.js:310:20)
gyp ERR! stack     at maybeClose (internal/child_process.js:1021:16)
gyp ERR! System Windows_NT 10.0.17763
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:Usersmeprojectssp-dev-fx-extensionssamplesreact-application-injectcssnode_modulesdeasync
gyp ERR! node -v v12.16.3
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
Build failed​

Does this mean that the SPFx project doesn’t support Visual Studio 2019? Will I have to install Visual Studio 2017 to build this project? 

Hey, I tried a few things and I can’t get the thing to run npm install properly.
gyp ERR! find VS
gyp ERR! find VS msvs_version not set from command line or npm config
gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer
gyp ERR! find VS looking for Visual Studio 2015
gyp ERR! find VS — not found
gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
gyp ERR! find VS
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.
gyp ERR! find VS For more information consult the documentation at:
gyp ERR! find VS github.com/nodejs/node-gyp#on-windows
gyp ERR! find VS **************************************************************
gyp ERR! find VS
gyp ERR! configure error
gyp ERR! stack Error: Could not find any Visual Studio installation to use
gyp ERR! stack at VisualStudioFinder.fail (C:Program Filesnodejsnode_modulesnpmnode_modulesnode-gyplibfind-visualstudio.js:121:47)
gyp ERR! stack at C:Program Filesnodejsnode_modulesnpmnode_modulesnode-gyplibfind-visualstudio.js:74:16
gyp ERR! stack at VisualStudioFinder.findVisualStudio2013 (C:Program Filesnodejsnode_modulesnpmnode_modulesnode-gyplibfind-visualstudio.js:351:14)
gyp ERR! stack at C:Program Filesnodejsnode_modulesnpmnode_modulesnode-gyplibfind-visualstudio.js:70:14
gyp ERR! stack at C:Program Filesnodejsnode_modulesnpmnode_modulesnode-gyplibfind-visualstudio.js:372:16
gyp ERR! stack at C:Program Filesnodejsnode_modulesnpmnode_modulesnode-gyplibutil.js:54:7
gyp ERR! stack at C:Program Filesnodejsnode_modulesnpmnode_modulesnode-gyplibutil.js:33:16
gyp ERR! stack at ChildProcess.exithandler (child_process.js:302:5)
gyp ERR! stack at ChildProcess.emit (events.js:210:5)
gyp ERR! stack at maybeClose (internal/child_process.js:1021:16)
gyp ERR! System Windows_NT 10.0.18362
gyp ERR! command «C:Program Filesnodejsnode.exe» «C:Program Filesnodejsnode_modulesnpmnode_modulesnode-gypbinnode-gyp.js» «rebuild»
gyp ERR! cwd C:UsersMadmouseKedDesktopErika-BotMaster-Botnode_modulesnode-opus
gyp ERR! node -v v12.13.1
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
npm WARN discord.js-commando@0.11.0-dev requires a peer of @types/better-sqlite3@5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN discord.js-commando@0.11.0-dev requires a peer of better-sqlite3@5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN discord.js-commando@0.11.0-dev requires a peer of discord.js@12.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN discord.js-commando@0.11.0-dev requires a peer of sqlite@3.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN master-bot@1.0.0 No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modulesfsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {«os»:»darwin»,»arch»:»any»} (current: {«os»:»win32″,»arch»:»x64″})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ref@1.3.5 (node_modulesref):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ref@1.3.5 install: node-gyp rebuild
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-opus@0.3.2 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-opus@0.3.2 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:UsersMadmouseKedAppDataRoamingnpm-cache_logs2019-12-03T15_45_58_318Z-debug.log

Hope you can help me out,
Thanks!
-Ked

Like this post? Please share to your friends:
  • Gvlk key not found windows 7 kmsauto
  • Gv rx16p256de rh драйвер windows 10
  • Gv r6570c 1gi драйвер на windows 10
  • Gv n710d3 1gl драйвер windows xp 64
  • Gv n210sl 1gi скачать драйвер windows 7