- Web Development with MongoDB and Node(Third Edition)
- Bruno Joseph D'mello Mithun Satheesh Jason Krol
- 134字
- 2021-07-08 10:32:40
Linux
Because there are so many different flavors and distributions of Linux available, installing Node isn't quite as straightforward. However, if you're running Linux to begin with, then you are more than aware of this and probably comfortable with a few extra steps.
Joyent has an excellent wiki on how to install Node on Linux using the many different package manager options available. This covers almost all the popular deb and rpm-based package managers. You can read that wiki by visiting https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager.
For Ubuntu 14.04 and preceding as an example, the steps to install Node would be as follows:
$ sudo apt-get install python-software-properties
$ sudo curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
$ sudo apt-get install nodejs
Once these steps have been completed, both Node and npm should be installed on your system.
推薦閱讀
- Deploying Node.js
- Cocos2D-X權威指南(第2版)
- C語言程序設計案例教程(第2版)
- 軟件架構設計:大型網站技術架構與業務架構融合之道
- 算法精粹:經典計算機科學問題的Java實現
- Rust編程從入門到實戰
- 琢石成器:Windows環境下32位匯編語言程序設計
- Spring MVC+MyBatis開發從入門到項目實踐(超值版)
- Distributed Computing in Java 9
- jQuery技術內幕:深入解析jQuery架構設計與實現原理
- 程序員的成長課
- Get Your Hands Dirty on Clean Architecture
- Visual Basic語言程序設計上機指導與練習(第3版)
- Mastering XenApp?
- 微信公眾平臺服務號開發:揭秘九大高級接口