Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OS X 安装失败 #1

Closed
faceair opened this issue Apr 8, 2015 · 4 comments
Closed

OS X 安装失败 #1

faceair opened this issue Apr 8, 2015 · 4 comments
Labels

Comments

@faceair
Copy link

faceair commented Apr 8, 2015

qq20150409-1

@qiu8310
Copy link
Owner

qiu8310 commented Apr 9, 2015

非常感谢反馈!

安装之前会帮你备份原来的 npm 命令文件,你可能没有对原 npm 文件的写权限,所以在备份文件的时候出错了,你可以用命令 ls -l $(which npm) 确认下你是否有写权限。

如果确实是没有写权限,你可以安装时用管理员权限安装,即 sudo npm install --global --registry=https://registry.npm.taobao.org/

我在下一个版本改善下安装过程的体验,再一次感谢您的反馈!

@qiu8310 qiu8310 added the bug label Apr 9, 2015
@faceair
Copy link
Author

faceair commented Apr 9, 2015

qq20150409-1 2x
qq20150409-2 2x

qq20150409-3 2x

npm-debug.log

看起来这里并不是权限问题,而好像跟我的shell有关,好像是因为fish不支持&&

@qiu8310
Copy link
Owner

qiu8310 commented Apr 9, 2015

你这次错误提示和上次不一样了,看来确实不是权限问题。

我晚上找时间看下!

@qiu8310
Copy link
Owner

qiu8310 commented Apr 18, 2015

实在想不到有什么很好的方法,现在把自动备份 npm 功能去掉了,现在需要你在安装的时候手动替换原来的 npm,比如可以使用下面的命令:

# Mac 或者 Linux 用户
ln -s $(npm root -g)/npm/bin/npm-cli.js $(dirname $(which npm))/npm-original  # 将系统的 npm 备份到 npm-original
npm install --global smart-npm --registry=https://registry.npm.taobao.org/

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

No branches or pull requests

2 participants