-1

API を使用するには、養蜂場を使用する必要があります。dredd をインストールする前に、Node と npm をインストールしました。

「npm install -g dredd」を実行しようとすると、次のエラーが発生します。

make: *** [Release/obj.target/protagonist/src/annotation.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:270:23)
gyp ERR! stack     at emitTwo (events.js:88:13)
gyp ERR! stack     at ChildProcess.emit (events.js:173:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:201:12)
gyp ERR! System Darwin 14.5.0
gyp ERR! command "/usr/local/bin/node"     "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/dredd/node_modules/protagonist
gyp ERR! node -v v5.2.0
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok 
npm WARN install:protagonist@0.20.1 protagonist@0.20.1 install: `node-gyp rebuild`
npm WARN install:protagonist@0.20.1 Exit status 1

> spawn-sync@1.0.14 postinstall     /usr/local/lib/node_modules/dredd/node_modules/spawn-sync
> node postinstall

/usr/local/lib
└── (empty)

npm ERR! code 1

これに関して誰でも助けることができますか?

4

2 に答える 2

0

Dredd は、Node の最近のすべてのバージョンをサポートするようになりました。バージョン1.4.0以降、 Dredd はインストール時に C++ コンパイラなどを必要としません。問題なく Mac にインストールできることを願っています。

于 2016-08-05T07:48:43.577 に答える