与NPM全球安装Mac OS X的小牛更新后无法正常工作 [英] Global installation with npm doesn't work after Mac OS X Mavericks update

查看:175
本文介绍了与NPM全球安装Mac OS X的小牛更新后无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

升级至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的小牛更新后无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆