Node.js 节点gyp在安装web3期间失败scrypt@6.0.3安装:`node gyp rebuild`

Node.js 节点gyp在安装web3期间失败scrypt@6.0.3安装:`node gyp rebuild`,node.js,npm,blockchain,ethereum,web3,Node.js,Npm,Blockchain,Ethereum,Web3,我正在我的项目中运行npm安装,但中途失败了。我已经按照指导完成了,但仍然无法让节点gyp正常工作 我已经安装了npm install--global--production windows build tools--vs2015,安装了python2.6并设置了路径,但仍然无法通过npm安装过程 npm安装--verbose这就是我得到的 22 Warning(s) 47 Error(s) Time Elapsed 00:00:10.17 gyp ERR! build err

我正在我的项目中运行npm安装,但中途失败了。我已经按照指导完成了,但仍然无法让节点gyp正常工作

我已经安装了
npm install--global--production windows build tools--vs2015
,安装了python2.6并设置了路径,但仍然无法通过npm安装过程

npm安装--verbose
这就是我得到的

    22 Warning(s)
    47 Error(s)

Time Elapsed 00:00:10.17
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\MSBuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (events.js:210:5)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
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:\Users\USER\WebstormProjects\myApp\node_modules\scrypt
gyp ERR! node -v v12.13.1
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
npm verb lifecycle scrypt@6.0.3~install: unsafe-perm in lifecycle true
npm verb lifecycle scrypt@6.0.3~install: PATH: C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\Users\USER\WebstormProjects\portal_frontend_au
th0\node_modules\scrypt\node_modules\.bin;C:\Users\USER\WebstormProjects\myApp\node_modules\.bin;C:\Program Files (x86)\MSBuild\14.0\Bin;C:\Users\USER\Envs\proje
cts\Scripts;C:\Users\USER\WebstormProjects\myApp\node_modules\.bin;C:\Python27\;C:\Python27\Scripts;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Wi
ndows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\nodejs\;C:\ProgramData\chocolatey\bin;C:\Program Files\Git\cmd;C:\Program Files (x86)\Window
s Kits\8.1\Windows Performance Toolkit\;C:\Users\USER\AppData\Local\Programs\Python\Python38-32\Scripts\;C:\Users\USER\AppData\Local\Programs\Python\Python38-32\;C:\Users\USER\A
ppData\Local\Microsoft\WindowsApps;;C:\Program Files\JetBrains\WebStorm 2019.2.4\bin;;C:\Users\USER\AppData\Roaming\npm
npm verb lifecycle scrypt@6.0.3~install: CWD: C:\Users\USER\WebstormProjects\myApp\node_modules\scrypt
npm info lifecycle scrypt@6.0.3~install: Failed to exec install script
npm timing action:install Completed in 32082ms
npm verb unlock done using C:\Users\USER\AppData\Roaming\npm-cache\_locks\staging-19dd7fb111b35106.lock for C:\Users\USER\WebstormProjects\myApp\node_modules\.st
aging
npm timing stage:rollbackFailedOptional Completed in 511ms
npm timing stage:runTopLevelLifecycles Completed in 47161ms
npm WARN @typescript-eslint/eslint-plugin@1.13.0 requires a peer of eslint@^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN @typescript-eslint/parser@1.13.0 requires a peer of eslint@^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules\jest-haste-map\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS:    darwin
npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch:  any
npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS:   win32
npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.0.7 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.0.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS:    darwin
npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch:  any
npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS:   win32
npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS:    darwin
npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch:  any
npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS:   win32
npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64

npm verb stack Error: scrypt@6.0.3 install: `node-gyp rebuild`
npm verb stack Exit status 1
npm verb stack     at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16)
npm verb stack     at EventEmitter.emit (events.js:210:5)
npm verb stack     at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
npm verb stack     at ChildProcess.emit (events.js:210:5)
npm verb stack     at maybeClose (internal/child_process.js:1021:16)
npm verb stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
npm verb pkgid scrypt@6.0.3
npm verb cwd C:\Users\USER\WebstormProjects\myApp
npm verb Windows_NT 10.0.17763
npm verb argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "--verbose"
npm verb node v12.13.1
npm verb npm  v6.12.1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! scrypt@6.0.3 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the scrypt@6.0.3 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm verb exit [ 1, true ]
npm timing npm Completed in 48860ms

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\USER\AppData\Roaming\npm-cache\_logs\2019-11-23T23_11_00_333Z-debug.log
22警告
47错误
时间流逝00:00:10.17
哎呀!构建错误
哎呀!堆栈错误:`C:\Program Files(x86)\MSBuild\14.0\bin\MSBuild.exe`失败,退出代码:1
哎呀!堆栈位于ChildProcess.onExit(C:\Program Files\nodejs\node\u modules\npm\node\u modules\node gyp\lib\build.js:194:23)
哎呀!ChildProcess.emit上的堆栈(events.js:210:5)
哎呀!在Process.ChildProcess.\u handle.onexit(internal/child\u Process.js:272:12)处堆栈
哎呀!系统Windows\u NT 10.0.17763
哎呀!命令“C:\\Program Files\\nodejs\\node.exe”C:\\Program Files\\nodejs\\node\u modules\\npm\\node\u modules\\node gyp\\bin\\node gyp.js“重建”
哎呀!cwd C:\Users\USER\webstoreprojects\myApp\node\u modules\scrypt
哎呀!节点-v12.13.1
哎呀!节点gyp-v5.0.5
哎呀!不好
动词生命周期scrypt@6.0.3~install:生命周期中的不安全烫发为true
动词生命周期scrypt@6.0.3~install:PATH:C:\Program Files\nodejs\node\u modules\npm\node\u modules\npm lifecycle\node gyp bin;C:\Users\USER\websprojects\portal\u frontend\u au
th0\node\u modules\scrypt\node\u modules\.bin;C:\Users\USER\webstoreprojects\myApp\node\u modules\.bin;C:\ProgramFiles(x86)\MSBuild\14.0\Bin;C:\Users\USER\Envs\proje
cts\脚本;C:\Users\USER\webstoreprojects\myApp\node\u modules\.bin;C:\Python27\;C:\Python27\脚本;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Wi
ndows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\ProgramFiles\nodejs\;C:\ProgramData\Chocolate\bin;C:\ProgramFiles\Git\cmd;C:\ProgramFiles(x86)\Window
s工具包\8.1\Windows性能工具包\;C:\Users\USER\AppData\Local\Programs\Python\Python38-32\Scripts\;C:\Users\USER\AppData\Local\Programs\Python\Python38-32\;C:\Users\USER\A
ppData\Local\Microsoft\WindowsApps;;C:\Program Files\JetBrains\WebStorm 2019.2.4\bin;;C:\Users\USER\AppData\Roaming\npm
动词生命周期scrypt@6.0.3~install:CWD:C:\Users\USER\webstoreprojects\myApp\node\u modules\scrypt
npm信息生命周期scrypt@6.0.3~install:无法执行安装脚本
npm定时动作:安装在32082ms内完成
使用C:\Users\USER\AppData\Roaming\npm cache\\u locks\staging-19dd7fb111b35106.lock for C:\Users\USER\WebStormProject\myApp\node\u modules\.st完成npm谓词解锁
老化
npm定时阶段:回滚选项在511ms内完成
npm计时阶段:运行顶层生命周期在47161ms内完成
npm WARN@typescript eslint/eslint-plugin@1.13.0需要eslint@^5.0.0的对等机,但未安装任何对等机。您必须自己安装对等依赖项。
npm WARN@typescript eslint/parser@1.13.0需要eslint@^5.0.0的对等机,但未安装任何对等机。您必须自己安装对等依赖项。
npm警告可选跳过可选依赖项:fsevents@1.2.9(节点\u模块\jest-haste-map\节点\u模块\fsevents):
npm WARN notsup跳过可选依赖项:不支持的平台fsevents@1.2.9:通缉{“os”:“达尔文”,“拱门”:“任何”}(当前:{“os”:“win32”,“拱门”:“x64”})
npm谓词notsup跳过可选依赖项:有效OS:darwin
npm谓词notsup跳过可选依赖项:有效Arch:any
npm谓词notsup跳过可选依赖项:实际操作系统:win32
npm谓词notsup跳过可选依赖项:实际拱门:x64
npm警告可选跳过可选依赖项:fsevents@2.0.7(节点\u模块\fsevents):
npm WARN notsup跳过可选依赖项:不支持的平台fsevents@2.0.7:通缉{“os”:“达尔文”,“拱门”:“任何”}(当前:{“os”:“win32”,“拱门”:“x64”})
npm谓词notsup跳过可选依赖项:有效OS:darwin
npm谓词notsup跳过可选依赖项:有效Arch:any
npm谓词notsup跳过可选依赖项:实际操作系统:win32
npm谓词notsup跳过可选依赖项:实际拱门:x64
npm警告可选跳过可选依赖项:fsevents@1.2.9(节点\u模块\chokidar\节点\u模块\fsevents):
npm WARN notsup跳过可选依赖项:不支持的平台fsevents@1.2.9:通缉{“os”:“达尔文”,“拱门”:“任何”}(当前:{“os”:“win32”,“拱门”:“x64”})
npm谓词notsup跳过可选依赖项:有效OS:darwin
npm谓词notsup跳过可选依赖项:有效Arch:any
npm谓词notsup跳过可选依赖项:实际操作系统:win32
npm谓词notsup跳过可选依赖项:实际拱门:x64
npm谓词堆栈错误:scrypt@6.0.3安装:`node gyp rebuild`
npm谓词堆栈退出状态1
事件发射器处的npm谓词堆栈。(C:\Program Files\nodejs\node\u modules\npm\node\u modules\npm lifecycle\index.js:332:16)
EventEmitter.emit上的npm谓词堆栈(events.js:210:5)
子进程处的npm谓词堆栈。(C:\Program Files\nodejs\node\U modules\npm\node\U modules\npm lifecycle\lib\spawn.js:55:14)
ChildProcess.emit处的npm谓词堆栈(events.js:210:5)
位于maybeClose的npm动词堆栈(internal/child_process.js:1021:16)
Process.ChildProcess.\u handle.onexit处的npm谓词堆栈(internal/child\u Process.js:283:5)
动词pkgidscrypt@6.0.3
npm动词cwd C:\Users\USER\webstoreprojects\myApp
npm动词Windows\u NT 10.0.17763
npm谓词argv“C:\\Program Files\\nodejs\\node.exe”“C:\\Program Files\\nodejs\\node\U模块\\npm\\bin\\npm cli.js”“安装”“--详细”
npm动词节点v12.13.1
npm动词npm v6.12.1
npm错误!代码失效循环
npm错误!错误1
npm错误!scrypt@6.0.3安装:`node gyp rebuild`
npm错误!退出状态1
npm错误!
npm错误!失败scrypt@6.0.3安装脚本。
npm错误!这可能不是npm的问题。上面可能还有其他日志输出。
npm动词exit[1,true]
npm定时npm在48860ms内完成
npm错误!完整的日志