2
我是nodejs和npm的新手。我想安裝p3(https://github.com/digitalbazaar/p3)。首先,我必須安裝基礎版(github.com/digitalbazaar/bedrock),因爲它是在指令中編寫的,但是在基本文件夾中的命令「npm install」中失敗。看起來像npm或某些東西不能編譯一些posix源文件。控制檯輸出:安裝posix時npm安裝錯誤
[[email protected] bedrock]# npm install
npm WARN package.json [email protected] No license field.
[email protected] install /root/bedrock/node_modules/posix
node-gyp rebuild
make: Entering directory `/root/bedrock/node_modules/posix/build'
CXX(target) Release/obj.target/posix/src/posix.o
../src/posix.cc:16:41: error: ‘Arguments’ does not name a type
static Handle<Value> node_getppid(const Arguments& args) {
^
../src/posix.cc:16:52: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]
static Handle<Value> node_getppid(const Arguments& args) {
^
In file included from /root/.node-gyp/0.12.4/src/node.h:61:0,
from ../src/posix.cc:1:
完全控制檯輸出:http://pastebin.com/HdTvNNMz
My configuration
[[email protected] bedrock]# node -v
v0.12.4
[[email protected] bedrock]# npm -v
2.10.1
[[email protected] bedrock]# uname -a
Linux localhost.localdomain 3.10.0-229.el7.x86_64 #1 SMP Fri Mar 6 11:36:42 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
但如果基石默認需要它,怎麼不使用它。這有什麼可能嗎? – Andrey
我得到的是你應該在'payswarm-auth' [github repo](https://github.com/digitalbazaar/p3/issues/new)上創建一個問題,告訴他們升級他們的'基石'依賴。 – mscdex