node-gyp configure将错误:在VisualStudioFinder中生成EPERM


C:UsersJenny_Hungtestd-api>node-gyp configure
gyp info it worked if it ends with ok
gyp info using node-gyp@9.3.1
gyp info using node@16.20.0 | win32 | x64
gyp info find Python using Python version 3.8.0 found at "C:UsersJenny_HungAppDataLocalProgramsPythonPython38python.exe"
gyp ERR! UNCAUGHT EXCEPTION
gyp ERR! stack Error: spawn EPERM
gyp ERR! stack     at ChildProcess.spawn (node:internal/child_process:420:11)
gyp ERR! stack     at spawn (node:child_process:733:9)
gyp ERR! stack     at execFile (node:child_process:331:17)
gyp ERR! stack     at VisualStudioFinder.findVisualStudio2017OrNewer (C:UsersJenny_HungAppDataRoamingnvmv16.20.0node_modulesnode-gyplibfind-visualstudio.js:141:17)
gyp ERR! stack     at VisualStudioFinder.findVisualStudio (C:UsersJenny_HungAppDataRoamingnvmv16.20.0node_modulesnode-gyplibfind-visualstudio.js:63:10)
gyp ERR! stack     at findVisualStudio (C:UsersJenny_HungAppDataRoamingnvmv16.20.0node_modulesnode-gyplibfind-visualstudio.js:13:10)
gyp ERR! stack     at C:UsersJenny_HungAppDataRoamingnvmv16.20.0node_modulesnode-gyplibconfigure.js:87:9
gyp ERR! stack     at FSReqCallback.oncomplete (node:fs:192:23)
gyp ERR! System Windows_NT 10.0.19045
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\node-gyp\bin\node-gyp.js" "configure"
gyp ERR! cwd C:UsersJenny_Hungtestd-api
gyp ERR! node -v v16.20.0
gyp ERR! node-gyp -v v9.3.1
gyp ERR! Node-gyp failed to build your package.
gyp ERR! Try to update npm and/or node-gyp and if it does not help file an issue with the package author.
C:UsersJenny_Hungtestd-api>npm config list
; "global" config from C:Program Filesnodejsetcnpmrc
; msvs_version = "2017" ; overridden by user
; "user" config from C:UsersJenny_Hung.npmrc
msbuild_path = "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe"
msvs_version = "2017"
python = "C:\Users\Jenny_Hung\AppData\Local\Programs\Python\Python38\python.exe"
; node bin location = C:Program Filesnodejsnode.exe
; node version = v16.20.0
; npm local prefix = C:UsersJenny_Hungtestd-api
; npm version = 8.19.4
; cwd = C:UsersJenny_Hungtestd-api
; HOME = C:UsersJenny_Hung
; Run `npm config ls -l` to show all defaults.

当我使用npm安装sqlite3或appmetrics-dash等。它总是说错误:产卵EPERM,就像有一些问题与VisualStudio?但是我安装了VisualStudio 2017,我尝试了node-gyp配置,然后得到了同样的错误。有人能帮帮我吗?

我也遇到了同样的问题,原来是我公司使用的ForcePoint或Bitdefender软件阻止了Windows powershell应用程序的启动,甚至对于管理员也是如此

相关内容

  • 没有找到相关文章

最新更新