uke*_*joe 13 node.js node-gyp contextify topojson
编辑
我升级了节点并运行了"npm install -g contextify"看起来它安装得很好(没有错误),但输入"which contextify"什么都不返回.安装contextify时的消息:
npm http GET https://registry.npmjs.org/contextify
npm http 304 https://registry.npmjs.org/contextify
npm http GET https://registry.npmjs.org/bindings
npm http 304 https://registry.npmjs.org/bindings
> contextify@0.1.6 install /usr/local/share/npm/lib/node_modules/contextify
> node-gyp rebuild
CXX(target) Release/obj.target/contextify/src/contextify.o
SOLINK_MODULE(target) Release/contextify.node
SOLINK_MODULE(target) Release/contextify.node: Finished
contextify@0.1.6 /usr/local/share/npm/lib/node_modules/contextify
??? bindings@1.1.1
Run Code Online (Sandbox Code Playgroud)
原版的
我在使用npm安装contextify时遇到问题:
npm install -g contextify
Run Code Online (Sandbox Code Playgroud)
并获取以下错误消息:
npm http GET https://registry.npmjs.org/contextify
npm http 304 https://registry.npmjs.org/contextify
npm http GET https://registry.npmjs.org/bindings
npm http 304 https://registry.npmjs.org/bindings
> contextify@0.1.6 install /usr/local/share/npm/lib/node_modules/contextify
> node-gyp rebuild
CXX(target) Release/obj.target/contextify/src/contextify.o
SOLINK_MODULE(target) Release/contextify.node
SOLINK_MODULE(target) Release/contextify.node: Finished
/usr/local/Cellar/node/0.10.1/lib/node_modules/npm/bin/node-gyp-bin/node-gyp: line 2: 73593 Segmentation fault: 11 node "`dirname "$0"`/../../node_modules/node-gyp/bin/node-gyp.js" "$@"
npm ERR! contextify@0.1.6 install: `node-gyp rebuild`
npm ERR! `sh "-c" "node-gyp rebuild"` failed with 139
npm ERR!
npm ERR! Failed at the contextify@0.1.6 install script.
npm ERR! This is most likely a problem with the contextify package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls contextify
npm ERR! There is likely additional logging output above.
npm ERR! System Darwin 13.0.0
npm ERR! command "/usr/local/Cellar/node/0.10.1/bin/node" "/usr/local/bin/npm" "install" "-g" "contextify"
npm ERR! cwd /Users/projects/
npm ERR! node -v v0.10.1
npm ERR! npm -v 1.2.15
npm ERR! code ELIFECYCLE
Run Code Online (Sandbox Code Playgroud)
谁知道这里发生了什么?我读到它可能与我的PYTHON PATH有关,但我不确定它应该如何.
谢谢您的帮助.
max*_*nes 11
我遇到了同样的问题node-gyp rebuild.解决方案是安装g ++:
apt-get -y install g++
Run Code Online (Sandbox Code Playgroud)
分段错误:11 个节点”
dirname "$0"
这似乎是 V8 中使用 Clang 编译时暴露的一个错误。它已在最新版本的 Node 中修复,因此您需要更新。github 问题追踪在这里
没有contextify可以运行的命令行程序,因此which contextify找不到任何内容。该contextify模块旨在node通过使用require('contextify')加载模块来在内部使用。
根据您的描述,您似乎可能将两件事混为一谈。安装的模块npm install -g是全局安装的,并且可供所有节点应用程序访问,但这并不意味着它们将公开可以在命令行上执行的脚本。-g只控制模块的安装路径。
模块是否具有可以运行的命令行脚本取决于该模块是否package.json定义了一组bin命令,例如jshint。当您使用 进行安装时-g,列出的脚本将与 一起进行符号链接node,因此可以通过您的PATH. 当没有安装时-g,bin 脚本将安装到其中node_modules/.bin,您必须将该目录添加到您的PATH脚本中才能工作。
| 归档时间: |
|
| 查看次数: |
18645 次 |
| 最近记录: |