npm - 使用 brew 安装 npm 驱动程序时出错
问题描述
我正在尝试执行以下命令
npm install bigchaindb-driver
使用 npm,但我不断收到错误。
我使用安装了 npm
酿造
,当我寻找解决方案时,我删除了所有npm和node并重新安装。
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [Release/obj.target/ed25519/src/ed25519.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:314:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
gyp ERR! System Darwin 19.6.0
gyp ERR! command "/usr/local/Cellar/node/14.13.1/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/junghyun2ing/node_modules/ed25519
gyp ERR! node -v v14.13.1
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm WARN uglifyjs-webpack-plugin@2.2.0 requires a peer of webpack@^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN name@1.0.0 No description
npm WARN name@1.0.0 No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ed25519@0.0.4 (node_modules/ed25519):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ed25519@0.0.4 install: `node-gyp rebuild`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
+ bigchaindb-driver@4.1.2
updated 1 package and audited 515 packages in 18.799s
3 packages are looking for funding
run `npm fund` for details
found 7 vulnerabilities (2 low, 1 moderate, 4 high)
run `npm audit fix` to fix them, or `npm audit` for details
为什么会出现这个错误?
解决方案
推荐阅读
- python - Python PANDAS:将函数应用于数据帧,并在数据帧中定义参数
- javascript - 创建函数字符串样板
- python - Python:将 SSML 与 SAPI 结合使用(comtypes)
- javascript - 如何在对象页面布局的块视图中将 oData 模型绑定到表?
- java - 为什么 AuthenticationFilter 完成后 RestController 不接收请求
- javascript - 如何从字符串中提取多个 json 对象并在 javascript 中保留其他文本
- bash - 将文件名通过目录递归匹配的文件压缩在一起
- javascript - Npm 模块未捕获错误:没有这样的模块。(可能尚未加载)
- c++ - 检测特定像素上的某种颜色并在检测到后发送点击的最快方法是什么?
- python - 使用字典理解访问给定键列表的字典键