-
Notifications
You must be signed in to change notification settings - Fork 26
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
spm 2.1.11 在 Ubuntu 上安装失败 #83
Comments
看来你是要把 /usr/lib/node_modules/ 改成不用 sudo 就可以安装的。 为什么不要用 sudo: http://howtonode.org/introduction-to-npm |
看到了,可是...这个方案我感觉很糟糕啊
我去再找找资料吧,感觉更好的方案应该是对 npm 做一些改变 |
sudo chown -R $USER /usr/local |
@afc163 |
看了几个模块 forever, pm2 等等,在 Ubuntu 下不用 sudo 都是没法安装的(一样卡在 ln 那边) |
你的 node 目测是在 /usr/bin 下,那么相应的,你应该是要把整个 usr 目录的权限加上。然后再安装应该就好了。
相信我,sudo 带来的问题会更多。 |
我想应该有办法解决 |
是不是把 spm check 中的系统检测提出来用 shell 写,感觉更靠谱一点。 |
@afc163 |
是你自己电脑的话,问题不大。:smile: |
不放心的话,就重装一下 node 确保安到 /usr/local 下。 |
@afc163 |
sudo 各种问题,心力憔悴,能不用就不用。自从发现了去 sudo 的解决方案,咨询量骤降啊。 |
又发现个去 sudo 的神方案集合,也是@isaacs 搞的:https://gist.github.com/isaacs/579814 |
@afc163 |
最后的解决方案是什么。。 |
不是写了嘛,就是不要用 sudo 安装 node |
sudo chown -R $USER /usr |
。。。你们为什么不点进那个 gist 看一下 |
因为我还没看到那个gist,就已经敲了那个命令,现在重新装node。建议在那个安装指南上写上对node安装的建议,因为ubuntu用户喜欢apt-get,谢谢。 |
@michael-yin 你可以帮忙 pull-request 一下,我们不用 ubuntu 的,所以对这个问题没有经验。 |
Ubuntu 版本 12.04.1 32 位版本
但是尝试 2.1.10 发现是 OK 的
安装报错如下
The text was updated successfully, but these errors were encountered: