Der Versuch, eine npm-Installation auf Mac-OSX von Github-Projekt zu tun. Pkg-config in packages.json nicht zu sehen warum würde node-gyp das erwarten? Es scheint, als ob der Knoten-gyp pkg-config enthalten sollte. Ich dachte, das ist die Art, wie der Knoten funktioniert. Installieren Sie ein Paket und es zieht ein, was es benötigt. Ich denke, das ist irgendwie anders. Auch fragen, welche Version pkg-config sucht.node-gyp 'pkg-config: Befehl nicht gefunden' auf Mac 10.5.8 während npm install
Und ja, ich war da draußen und lud das Tarball herunter, aber seine Installationsanweisungen für Mac sind wirklich Unsinn. Es bleibt ./configure und dann install. Aber es Make-Datei ist nicht vorhanden und alles ist in derselben Verzeichnisebene aber es sagt cd in Code-Verzeichnis usw.
> node-gyp rebuild /bin/sh: pkg-config: command not found gyp: Call to 'pkg-config libzmq --libs' returned exit status 127. while trying to load binding.gyp gyp ERR! configure error gyp ERR! stack Error: `gyp` failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:343:16) gyp ERR! stack at ChildProcess.emit (events.js:98:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:820:12) gyp ERR! System Darwin 12.5.0 gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /Users/Mac1/Downloads/projdirectory/node_modules/zmq gyp ERR! node -v v0.10.35 gyp ERR! node-gyp -v v1.0.1 gyp ERR! not ok npm WARN optional dep failed, continuing [email protected]
Wie installiert man unter Linux? – chovy