Node.js

node 与 npm

Node.js 和 npm 对使用 Angular 和其他平台进行现代网络开发是至关重要的。 Node 驱动客户端开发和构建工具。 npm 包管理器本身是 node 应用,用于安装 JavaScript 库。

如果你的电脑没有安装它们, 立刻安装它们


在终端/控制器窗口运行命令node -vnpm -v,来确认你运行的 node 是v4.x.x或更高,npm 为3.x.x或更高。 老版本会产生错误。

我们推荐使用 nvm 来管理多版本 node 和 npm。 如果你的电脑上已经有使用其他版本 node 和 npm 的项目,你可能需要 nvm。

Install nvm

To install or update nvm, you can use the install script using cURL:

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash

If the above doesn't fix the problem, open your .bash_profile and add the following line of code:

source ~/.bashrc

Run  . ~/.bash_profile  to restart bash. You don't need to close and reopen it...



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值