Skip to content
This repository has been archived by the owner on Sep 25, 2023. It is now read-only.

安装卡死问题 #25

Closed
lesstommy opened this issue Nov 27, 2012 · 9 comments
Closed

安装卡死问题 #25

lesstommy opened this issue Nov 27, 2012 · 9 comments

Comments

@lesstommy
Copy link

提示:

[ws v0.4.23] Attempting to compile blazing fast native extensions.
[ws v0.4.23] Attempting to compile blazing fast native extensions.
[ws v0.4.23] Attempting to compile blazing fast native extensions.

然后用control+C/Z 跳出

然后就没有然后了...

@chenyl107
Copy link

是不是macos, xcode装了么?xcode有安装command line tools吗?

@lesstommy
Copy link
Author

都装了 只是无限等待

@chenyl107
Copy link

你打的命令是什么?

@lesstommy
Copy link
Author

npm install pomelo -g

@chenyl107
Copy link

没加 sudo 没报错吗?还有你的node是怎么装的?

@lesstommy
Copy link
Author

node 是官网上下的安装包装的

加sudo以后提示报错:

gyp ERR! UNCAUGHT EXCEPTION
gyp ERR! stack Error: EPERM, utime '/var/root/.node-gyp/0.8.15'
gyp ERR! System Darwin 12.2.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/pomelo/node_modules/pomelo-admin/node_modules/v8-profiler
gyp ERR! node -v v0.8.15
gyp ERR! node-gyp -v v0.7.1
gyp ERR! This is a bug in node-gyp.
gyp ERR! Please file an Issue:
gyp ERR! https://github.com/TooTallNate/node-gyp/issues
npm ERR! v8-profiler@3.6.2-1 install: node-gyp rebuild
npm ERR! sh "-c" "node-gyp rebuild" failed with 7
npm ERR!
npm ERR! Failed at the v8-profiler@3.6.2-1 install script.
npm ERR! This is most likely a problem with the v8-profiler 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 v8-profiler
npm ERR! There is likely additional logging output above.

npm ERR! System Darwin 12.2.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "pomelo" "-g"
npm ERR! cwd /Users/tommyyuan
npm ERR! node -v v0.8.15
npm ERR! npm -v 1.1.66
npm ERR! code ELIFECYCLE

@chenyl107
Copy link

这还没遇到过哎,看这提示是遇到v8的bug了 让你告诉作者呢,话说你xcode的路径指定了没?

@py8765
Copy link
Collaborator

py8765 commented Nov 28, 2012

可能需要在xcode中安装command line tools

@numbcoder
Copy link

OS X 下,node 最佳安装方式是 用Homebrew (brew 可以自动帮你解决包依赖的问题)

首先要安装 Xcode 和 command line tools ,

然后是安装 brew

ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)"

然后安装 node

brew install node

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants