问题描述
升级至OS X 10.9小牛后,节点是不再在bash找到。我想我与 BREW
前一阵子。
After upgrading to OS X 10.9 Mavericks, node wasn't found anymore in bash. I think I installed it with brew
a while ago.
我决定使用安装程序从Node.js的网站。它了罚款和两个节点
和 NPM
在bash变得可用。不过,安装软件包在全球不起作用。
I decided to use the installer from node.js website. It went fine and both node
and npm
became available in bash. However, installing packages globally doesn't work.
NPM -g斌
输出的/ usr / local / bin目录
。
但是,运行后NPM安装-g人缘
并调用 LS -la在/ usr / local / bin目录
我看不到一个符号连接,其中人缘
可执行文件驻留的路径。
However, after running npm install -g karma
and invoking ls -la /usr/local/bin
I can't see a symlink to the path where karma
executable resides.
运行 NPM -g根
收益的/ usr / local / lib目录/ node_modules
键,在安装后,我可以看到该人缘
模块是存在的。
Running npm -g root
returns /usr/local/lib/node_modules
and after the installation I can see that karma
module is there.
不知道我还有我可以检查。谢谢!
Not sure what I else I could check. Thanks!
推荐答案
这个问题似乎已经发生,因为我尝试安装是pviously $ P $我的系统上的软件包。创建符号链接未创建的,可能是因为那个。一旦我删除的软件包,并重新安装它们(或试图安装包我还没有),他们被添加到的/ usr / local / bin目录
的符号链接。
The problem seems to have occured because I tried to install packages that were previously on my system. The symlinks weren't created, probably because of that. Once I removed the packages and re-installed them (or tried to install packages I haven't had), they were added to /usr/local/bin
as symlinks.
这篇关于与NPM全球安装Mac OS X的小牛更新后无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!