Node.js 安装ursa时出错-错误C2660:&x27;v8::String::Utf8Length';:函数不接受0个参数

Node.js 安装ursa时出错-错误C2660:&x27;v8::String::Utf8Length';:函数不接受0个参数,node.js,npm,encryption,npm-install,Node.js,Npm,Encryption,Npm Install,我正在尝试将ursa包安装到我的react js项目中进行加密/解密。但我在安装中有以下错误 我的节点版本:12.13.0 我的NPM版本:6.12.0 109 warn @typescript-eslint/eslint-plugin@1.6.0 requires a peer of typescript@* but none is installed. You must install peer dependencies yourself. 110 warn @typescript-esli

我正在尝试将ursa包安装到我的react js项目中进行加密/解密。但我在安装中有以下错误

我的节点版本:12.13.0

我的NPM版本:6.12.0

109 warn @typescript-eslint/eslint-plugin@1.6.0 requires a peer of typescript@* but none is installed. You must install peer dependencies yourself.
110 warn @typescript-eslint/parser@1.6.0 requires a peer of typescript@* but none is installed. You must install peer dependencies yourself.
111 warn @typescript-eslint/typescript-estree@1.6.0 requires a peer of typescript@* but none is installed. You must install peer dependencies yourself.
112 warn tsutils@3.17.1 requires a peer of typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta but none is installed. You must install peer dependencies yourself.
113 warn optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules\fsevents):
114 warn notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
115 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS:    darwin
115 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch:  any
115 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS:   win32
115 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64
116 warn optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules\watchpack\node_modules\fsevents):
117 warn notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
118 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS:    darwin
118 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch:  any
118 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS:   win32
118 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64
119 verbose stack Error: ursa@0.9.4 install: `node-gyp rebuild`
119 verbose stack Exit status 1
119 verbose stack     at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16)
119 verbose stack     at EventEmitter.emit (events.js:210:5)
119 verbose stack     at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
119 verbose stack     at ChildProcess.emit (events.js:210:5)
119 verbose stack     at maybeClose (internal/child_process.js:1021:16)
119 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
120 verbose pkgid ursa@0.9.4
121 verbose cwd D:\xampp\htdocs\yoface
122 verbose Windows_NT 10.0.18362
123 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "--save" "ursa"
124 verbose node v12.13.0
125 verbose npm  v6.12.0
126 error code ELIFECYCLE
127 error errno 1
128 error ursa@0.9.4 install: `node-gyp rebuild`
128 error Exit status 1
129 error Failed at the ursa@0.9.4 install script.
129 error This is probably not a problem with npm. There is likely additional logging output above.
130 verbose exit [ 1, true ]
109警告@typescript eslint/eslint-plugin@1.6.0需要typescript@*的对等方,但未安装任何对等方。您必须自己安装对等依赖项。
110警告@typescript eslint/parser@1.6.0需要typescript@*的对等方,但未安装任何对等方。您必须自己安装对等依赖项。
111警告@typescript eslint/typescript-estree@1.6.0需要typescript@*的对等方,但未安装任何对等方。您必须自己安装对等依赖项。
112警告tsutils@3.17.1需要类型为script@>=2.8.0|124;>=3.2.0-dev|124;>=3.3.0-dev|124;>=3.4.0-dev|124;>=3.5.0-dev|124;>=3.6.0-dev||>=3.6.0-beta|124;>=3.7.0-dev 124>=3.7.0-beta的对等机,但未安装。您必须自己安装对等依赖项。
113警告可选跳过可选依赖项:fsevents@1.2.13(节点\u模块\fsevents):
114 warn notsup跳过可选依赖项:不支持的平台fsevents@1.2.13:通缉{“os”:“达尔文”,“拱门”:“任何”}(当前:{“os”:“win32”,“拱门”:“x64”})
115详细notsup跳过可选依赖项:有效OS:darwin
115详细notsup跳过可选依赖项:有效Arch:any
115详细notsup跳过可选依赖项:实际操作系统:win32
115详细notsup跳过可选依赖项:实际Arch:x64
116警告可选跳过可选依赖项:fsevents@2.1.3(节点\u模块\watchpack\节点\u模块\fsevents):
117 warn notsup跳过可选依赖项:不支持的平台fsevents@2.1.3:通缉{“os”:“达尔文”,“拱门”:“任何”}(当前:{“os”:“win32”,“拱门”:“x64”})
118详细notsup跳过可选依赖项:有效OS:darwin
118详细notsup跳过可选依赖项:有效Arch:any
118详细notsup跳过可选依赖项:实际操作系统:win32
118详细notsup跳过可选依赖项:实际Arch:x64
119详细堆栈错误:ursa@0.9.4安装:`node gyp rebuild`
119详细堆栈退出状态1
119 EventEmitter上的详细堆栈。(C:\Program Files\nodejs\node\u modules\npm\node\u modules\npm lifecycle\index.js:332:16)
119 EventEmitter.emit处的详细堆栈(events.js:210:5)
119子进程上的详细堆栈。(C:\Program Files\nodejs\node\U modules\npm\node\U modules\npm lifecycle\lib\spawn.js:55:14)
119 ChildProcess.emit上的详细堆栈(events.js:210:5)
119 maybeClose的详细堆栈(internal/child_process.js:1021:16)
119 Process.ChildProcess.\u handle.onexit处的详细堆栈(internal/child\u Process.js:283:5)
120详细pkgidursa@0.9.4
121详细cwd:\xampp\htdocs\yoface
122详细窗口\u NT 10.0.18362
123详细argv“C:\\Program Files\\nodejs\\node.exe”C:\\Program Files\\nodejs\\node\U模块\\npm\\bin\\npm cli.js”“安装”“--保存”“ursa”
124详细节点v12.13.0
125详细的npm v6.12.0
126错误代码ELIFECYCLE
127错误1
128错误ursa@0.9.4安装:`node gyp rebuild`
128错误退出状态1
129发生错误时失败ursa@0.9.4安装脚本。
129错误这可能不是npm的问题。上面可能还有其他日志输出。
130详细退出[1,true]
请帮我解决这个问题