首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在intranet上安装node-fibers?

如何在intranet上安装node-fibers?
EN

Stack Overflow用户
提问于 2017-02-16 02:32:10
回答 1查看 871关注 0票数 0

看起来光纤正在尝试与104.20.23.46:443通话,但由于我没有互联网连接,它失败了。有什么办法可以绕过这个问题吗?

代码语言:javascript
复制
npm install node-fibers-1.0.5.tar.gz

> fibers@1.0.5 install /opt/wekan/bundle/programs/server/node_modules/fibers
> node ./build.js

(node:35623) DeprecationWarning: child_process: options.customFds option is deprecated. Use options.stdio instead.
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: connect ETIMEDOUT 104.20.23.46:443
gyp ERR! stack     at Object.exports._errnoException (util.js:1022:11)
gyp ERR! stack     at exports._exceptionWithHostPort (util.js:1045:20)
gyp ERR! stack     at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1087:14)
gyp ERR! System Linux 3.10.0-229.el7.x86_64
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 /opt/wekan/bundle/programs/server/node_modules/fibers
gyp ERR! node -v v6.9.5
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
Build failed
npm WARN meteor-dev-bundle@0.0.0 No description
npm WARN meteor-dev-bundle@0.0.0 No repository field.
npm WARN meteor-dev-bundle@0.0.0 No license field.
npm ERR! Linux 3.10.0-229.el7.x86_64
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "node-fibers-1.0.5.tar.gz"
npm ERR! node v6.9.5
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE

npm ERR! fibers@1.0.5 install: `node ./build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the fibers@1.0.5 install script 'node ./build.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the fibers package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node ./build.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs fibers
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls fibers
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /opt/wekan/bundle/programs/server/npm-debug.log
EN

回答 1

Stack Overflow用户

发布于 2017-02-16 06:33:31

如果你使用的平台是fibers提供的预构建二进制文件,那么它应该不会触发完整的构建,并且需要下载任何东西:

代码语言:javascript
复制
→ find . -name fibers.node
./node_modules/fibers/bin/darwin-ia32-46/fibers.node
./node_modules/fibers/bin/darwin-ia32-48/fibers.node
./node_modules/fibers/bin/darwin-x64-46/fibers.node
./node_modules/fibers/bin/darwin-x64-48/fibers.node
./node_modules/fibers/bin/linux-ia32-46/fibers.node
./node_modules/fibers/bin/linux-ia32-48/fibers.node
./node_modules/fibers/bin/linux-x64-46/fibers.node
./node_modules/fibers/bin/linux-x64-48/fibers.node
./node_modules/fibers/bin/win32-ia32-46/fibers.node
./node_modules/fibers/bin/win32-ia32-48/fibers.node
./node_modules/fibers/bin/win32-x64-46/fibers.node
./node_modules/fibers/bin/win32-x64-48/fibers.node

46和48表示Node保留的内部模块版本号,对于主版本号(即4/6),该版本号通常保持不变:

代码语言:javascript
复制
→ node -pe 'process.version'
v6.9.5
→ node -pe 'process.versions.modules'
48

代码语言:javascript
复制
→ node -pe 'process.version'
v4.7.0
→ node -pe 'process.versions.modules'
46

如果您没有合适的机器,则可能需要在具有internet访问权限的等效机器上进行编译,然后将node_modules/fibers目录移到此处。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/42257422

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档