【文件属性】:
文件名称:sike-nodejs-hello:创建 NPM 包
文件大小:2KB
文件格式:ZIP
更新时间:2021-06-04 20:48:07
JavaScript
#第 1 课:创建 NPM 包
开发环境
system:ubuntu 14.04LTS
Editor:vim
nodejs version:v0.10.34
npm version:2.1.16
python version:2.7.6
从源代码安装 nodejs
wget http://nodejs.org/dist/v0.10.34/node-v0.10.34.tar.gz
tar zxvf node-v0.10.34.tar.gz
cd node-v0.10.34
./configure
make
sudo make install
node -v
安装 npm 模块管理器
curl -O -L https://npmjs.org/install.sh
sudo sh install.sh
npm -v
【文件预览】:
sike-nodejs-hello-master
----bin()
--------greet.js(291B)
----index.js(152B)
----package.json(370B)
----test()
--------greet_spec.js(0B)
----README.md(468B)