The packages on this page are maintained and supported by their respective packagers, not the node.js core team. Please report any issues you encounter to the package maintainer. If it turns out your issue is a bug in node.js itself, the maintainer will report the issue upstream.
Gentoo
Node.js is available in the portage tree.
# emerge nodejs
Debian, LMDE
Node.js is available in official repo for Debian Sid(unstable).
For Debian Wheezy, you have two options:
Build from source
sudo apt-get install python g++ make checkinstall fakeroot
src=$(mktemp -d) && cd $src
wget -N http://nodejs.org/dist/node-latest.tar.gz
tar xzvf node-latest.tar.gz && cd node-v*
./configure
fakeroot checkinstall -y --install=no --pkgversion $(echo $(pwd) | sed -n -re's/.+node-v(.+)$/\1/p') make -j$(($(nproc)+1)) install
sudo dpkg -i node_*
Uninstall
sudo dpkg -r node
Backports
Alternatively, you can install nodejs
from wheezy-backports
. If you rely on having node
as an executable, install nodejs-legacy
as well.
If you need npm
as well, you can get it through the installer
curl https://www.npmjs.org/install.sh | sudo sh
Ubuntu, Mint, elementary OS
From Ubuntu 12.04 to 13.04, an old version (0.6.x) of Node is in the standard repository. To install, just run:
sudo apt-get install nodejs
Obtaining a recent version of Node or installing on older Ubuntu and other apt-based distributions may require a few extra steps. Example install:
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install python-software-properties python g++ make nodejs
It installs current stable Node on the current stable Ubuntu. 12.10 and 13.04 users may need to install the software-properties-commonpackage for the add-apt-repository
command to work: sudo apt-get install software-properties-common
.
The command add-apt-repository
is actually provided by the python-software-properties package. So you will have to install this one as wellsudo apt-get install python-software-properties
.
As of Node.js v0.10.0, the nodejs package from Chris Lea's repo includes both npm and nodejs-dev.
There is a naming conflict with the node package (Amateur Packet Radio Node Program), and the nodejs binary has been renamed fromnode
to nodejs
. You'll need to symlink /usr/bin/node
to /usr/bin/nodejs
or you could uninstall the Amateur Packet Radio Node Program to avoid that conflict.
openSUSE & SLE
Node.js stable repos list. Also node.js is available in openSUSE:Factory repository.
Available RPM packages for: openSUSE 11.4, 12.1, Factory and Tumbleweed; SLE 11 (with SP1 and SP2 variations).
Example install on openSUSE 12.1:
sudo zypper ar http://download.opensuse.org/repositories/devel:/languages:/nodejs/openSUSE_12.1/ NodeJSBuildService
sudo zypper in nodejs nodejs-devel
Fedora
Node.js and npm are available in Fedora 18 and later. Just use your favorite graphical package manager or run this on a terminal to install both npm and node:
sudo yum install nodejs npm
RHEL/CentOS/Scientific Linux 6
Node.js and npm are available from the Fedora Extra Packages for Enterprise Linux (EPEL) repository. If you haven't already done so, firstenable EPEL.
To check if you have EPEL, run
yum repolist
if you don't see epel, install it via RPM (At the time of this writing, the last version is 6.8.).
First import the key:
sudo rpm --import https://fedoraproject.org/static/0608B895.txt
Then install
sudo rpm -Uvh http://download-i2.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
And then run the following command to install node and npm:
sudo yum install nodejs npm --enablerepo=epel
or if this doesn't work for you install node separately:
sudo yum install npm --enablerepo=epel
Arch Linux
Node.js is available in the Community Repository.
pacman -S nodejs
FreeBSD and OpenBSD
Node.js is available through the ports system.
/usr/ports/www/node
Development versions are also available using ports
cd /usr/ports/www/node-devel/ && make install clean
or packages on FreeBSD
pkg_add -r node-devel
Using pkg-ng on FreeBSD
pkg install node
or the development versions
pkg install node-devel
OSX
Using a package
Simply download Macintosh Installer.
Using Fink:
fink install nodejs
Using homebrew:
brew install node
Using macports:
port install nodejs
Windows
Using a package
Simply download Windows Installer.
Using chocolatey to install Node:
cinst nodejs
or for full install with NPM:
cinst nodejs.install
Using Scoop to install Node:
scoop install nodejs
from:https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager
相关推荐
这一章还涉及到了npm(Node Package Manager)的使用,这是一个用于管理Node.js软件包的工具,对于后续的学习和开发至关重要。 ### 核心API基础 从第三章“Loading Modules”开始,书籍深入讲解了Node.js的模块...
Practical Node.js takes you from installing all the necessary modules to writing full-stack web applications. You'll harness the power of the Express.js and Hapi frameworks, the MongoDB database with ...
Practical Node.js takes you from installing all the necessary modules to writing full-stack web applications by harnessing the power of the Express.js and Hapi frameworks, the MongoDB database with ...
学习node.js的好书 下面是目录: Preface 1 Chapter 1: Understanding the Node Environment 7 Extending JavaScript 9 Events 10 Modularity 12 The Network 13 V8 15 Memory and other limits 16 Harmony 18 The ...
NPM(Node Package Manager)是Node.js的默认包管理器,它允许开发者轻松地安装、更新和卸载项目所需的库和工具。本篇主要讨论如何以编程的方式,而非通过命令行工具,来安装NPM依赖项。 首先,了解NPM的基本操作,...
This book draws on their considerable experience, taking you from the very first steps of installing Node.js on your computer all the way to creating, debugging, and deploying production applications....
今天在QCon上听了袁锋的分享《Node.js脱离了浏览器的Javascript》之后,顿时有了想立刻试一下的冲动。 Node.js的安装步骤算是比较简单,没有太多的弯路,主要参考文档: Building and Installing Node.js 1. 安装...
Roberto Nogueira BSd EE, MSd CESolution Integrator Experienced - Certified by EricssonNodejs... Installing a Package with npm 6:57Section: 2Using the Node.js Module System[x] 6. require() 9:53[x] 7. Mo
此包是AR9331主控的Openwrt系统上运行的node所需要的两个包(uclibcxx_0.2.4-1_ar71xx及node_v0.10.17-2_ar71xx) 具体的使用方法如下: 1、下载后,解压此包,使用SCP上传到/tmp目录下: root登陆到openwrt中并...
Python Package Index (PyPI) 是Python开发者的重要资源,它提供了大量的第三方库,方便用户扩展Python的功能。PyPA(Python Packaging Authority)是负责维护Python打包工具的标准组织,其目标是简化Python项目的...
Node.js是一个基于Chrome V8引擎的JavaScript运行环境,它允许开发者在服务器端使用JavaScript进行编程。Node.js采用非阻塞I/O和事件驱动的模型,使其在处理高并发请求时表现出优秀的性能。 2. **Express框架**: ...
You will learn how to install Node.js, the Node.js package manager (npm), and Grunt. Then, you will understand how to set up and configure a personalized Grunt environment. Next, you will look at the...
这是一个简单的node.js脚本,可让您从HockeyApp API下载构建,因为它不提供易于下载的api。 ========= 您需要运行此脚本的内容: (1)安装Node.js和NPM You can follow this instruction here: ...
NodeAPI是基于顶级Node.js和Express.js与Mongoose.js进行MongoDB集成的REST API服务器实现。 访问控制在OAuth2orize和Passport.js的帮助下遵循OAuth 2.0规范。 这是文章之后的更新代码。 正在运行的项目 手册 ...
Linux-PAM,全称为Pluggable Authentication Modules,是Linux操作系统中的一个关键组件,主要用于实现灵活的身份验证机制。PAM的设计目标是将认证过程与应用程序本身分离,使得系统管理员可以根据需要自由选择和...
Node.js 是一个基于 Chrome V8 引擎的 JavaScript 运行环境。Node.js 使用了一个事件驱动、非阻塞式 I/O 的模型,使其轻量又高效
Summary SPA Design and Architecture teaches you the design and development skills you need to create SPAs. Includes an overview of MV* frameworks, unit testing...Appendix D Installing Node.js and Gulp.js
2. Installing the ros-by-example Code...............................................................3 3. Task Execution using ROS..........................................................................