首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法用国产语言链接/运行Node.js v6

无法用国产语言链接/运行Node.js v6
EN

Stack Overflow用户
提问于 2017-02-02 17:08:07
回答 1查看 1.6K关注 0票数 2

我正试图专门安装Node.js v6,事实证明这是令人费解的困难。

在一个新的MacBook运行塞拉利昂,我已经运行:brew install node@6

这给了我:

代码语言:javascript
复制
Please note by default only English locale support is provided. If you need
full locale support you should either rebuild with full icu:
  `brew reinstall node --with-full-icu`
or add full icu data at runtime following:
  https://github.com/nodejs/node/wiki/Intl#using-and-customizing-the-small-icu-build

This formula is keg-only, which means it was not symlinked into /usr/local.

This is an alternate version of another formula.

If you need to have this software first in your PATH run:
  echo 'export PATH="/usr/local/opt/node@6/bin:$PATH"' >> ~/.zshrc

For compilers to find this software you may need to set:
    LDFLAGS:  -L/usr/local/opt/node@6/lib
    CPPFLAGS: -I/usr/local/opt/node@6/include


Bash completion has been installed to:
  /usr/local/etc/bash_completion.d
==> Summary
  /usr/local/Cellar/node@6/6.9.5: 3,891 files, 41.3M

如果我运行which node,我就会得到node not found。如果我运行brew link node,我就会得到Error: No such keg: /usr/local/Cellar/node。我还运行了sudo chown -R $USER /usr/local

我如何“链接”Node.js v6以便其他软件能够找到它?我运行echo 'export PATH="/usr/local/opt/node@6/bin:$PATH"' >> ~/.zshrc吗?我不想做任何我不确定的事。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-02-02 18:17:33

不要使用Homebrew来安装节点。

我喜欢节点版本管理器(NVM),还有N (如注释中的@ntalbs所提到的)。在Mac上,这些都是更好的选项,以避免定值问题后来

注意,您可以通过Homebrew安装nvmn。(brew install nvmbrew install n)。

票数 9
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/42008206

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档