关于在Ubuntu下安装nodejs以及使用addons API的一系列命令。
2015-12-02 12:42
721 查看
一.Ubuntu下安装nodejs
# apt-get update # apt-get install -y python-software-properties software-properties-common # add-apt-repository ppa:chris-lea/node.js # apt-get update # apt-get install nodejs
二.Ubuntu下安装npm、node-gyp
#apt-get install ...
三.克隆addons的示例
进入相应目录:#git clone https://github.com/nodejs/node-addon-examples.git[/code]四.验证示例
在每个项目的目录下$ npm install $ node-gyp rebuild $ nodejs ./
相关文章推荐
- Ubuntu 默认壁纸历代记
- Ubuntu Remix Cinnamon 20.04 评测:Ubuntu 与 Cinnamon 的完美融合
- Android Manifest 用法
- 关于Ubuntu 11.10启动提示waiting for the network configuration的问题
- 在 Ubuntu 桌面中使用文件和文件夹
- 什么是 GraphQL?
- ubuntu下chrome无法同步问题解决
- Spark RDD API详解(一) Map和Reduce
- Ubuntu Linux使用体验
- 使用 GNOME 优化工具自定义 Linux 桌面的 10 种方法
- 以Ubuntu 9.04为例 将工作环境迁移到 Linux
- VirtualBox虚拟机XP与宿主机Ubuntu互访共享文件夹
- 从USB安装Ubuntu Server 10.04.3 图文详解
- Ubuntu 15.04 正式版发布下载
- Linux-Ubuntu 10.04安装Cadence-ic610 方法总结图解
- Ubuntu 12.04和Windows 7双系统安装图解
- 开机出现:grub rescue的修复方法
- Ubuntu连接Android真机调试
- 你应该选择 Ubuntu 还是 Fedora?
- 100 个最佳 Ubuntu 应用(中)