【问题标题】:Demeteorized app - error on "npm install"Demeteorized 应用程序 - “npm install”错误
【发布时间】:2015-09-19 04:29:28
【问题描述】:

分解我的应用程序后。该项目依赖于fibers 1.0.5,并且在安装过程中出错。

我在 Mac OSX Yosemite 上,节点 V 4.0.0

任何帮助或见解将不胜感激。

node) child_process: options.customFds option is deprecated. Use options.stdio instead.
CXX(target) Release/obj.target/fibers/src/fibers.o
../src/fibers.cc:132:44: error: too many arguments to function call, expected at
most 2, have 4
return Signature::New(isolate, receiver, argc, argv);
~~~~~~~~~~~~~~ ^~~~~~~~~~
/Users/.../.node-gyp/4.0.0/include/node/v8.h:4675:3: note: 'New' declared
here
static Local New(
^
../src/fibers.cc:140:3: error: no member named 'SetResourceConstraints' in
namespace 'v8'; did you mean simply 'SetResourceConstraints'?
v8::SetResourceConstraints(isolate, constraints);
^~~~~~~~~~~~~~~~~~~~~~~~~~
SetResourceConstraints
../src/fibers.cc:139:7: note: 'SetResourceConstraints' declared here
void SetResourceConstraints(Isolate* isolate, ResourceConstraint...
^
2 errors generated.
make: *** [Release/obj.target/fibers/src/fibers.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:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200: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" "--release"
gyp ERR! cwd /Users/.../Meteor/boldvueDeploy/bundle/programs/server/node_modules/fibers
gyp ERR! node -v v4.0.0
gyp ERR! node-gyp -v v3.0.1
gyp ERR! not ok 
Build failed
npm ERR! Darwin 14.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v4.0.0
npm ERR! npm v2.14.2
npm ERR! code ELIFECYCLE

npm ERR! fibers@1.0.5 install: node ./build.js
npm ERR! Exit status 1

【问题讨论】:

  • demeteorizing 包是旧的我不建议再使用它尝试 mup 进行部署

标签: node.js macos meteor demeteorizer


【解决方案1】:

我在使用 mup 部署到 ubuntu 14.04 时也遇到了光纤问题。原来是nodejs版本,我尝试用0.10.40版本,成功了!

我建议你使用 mup。使用安装它

npm install -g mup

在你的项目目录上运行这个命令:

mup init

它将创建两个文件 mup.json 和 settings.json

将 mup.json 上的节点版本更改为“0.10.40”,如下所示:

"nodeVersion": "0.10.40"

运行:

mup setup

然后:

mup deploy

您的项目应该已经启动并正在运行。

访问https://github.com/arunoda/meteor-up

【讨论】:

  • 感谢 João Victor。我确实转向了 mup,它对我很有帮助!
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2015-09-11
  • 2021-05-10
  • 2018-02-11
  • 1970-01-01
  • 1970-01-01
  • 2021-12-18
相关资源
最近更新 更多