NPM 包发布流程
注册 NPM 账号 点击 注册账号,并完成邮箱验证。 初始化 NPM 项目 123456# 创建项目目录mkdir <project># 进入项目目录cd <project># 初始化项目npm init 执行上述命令,根据提示输入相关信息,完成后目录下会生成 package.json 文件,内容如下: 1234567891011121314{ "name": "demo", "version": "1.0.0", "description": "A demo projcet of npm.", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" ...
Node.js 之旅 - 好的开端
安装 Node.js Windows 官网 下载二进制安装包直接安装。 其它方法参考 官方文档。 Ubuntu 12345# 根据需要选择不同版本: 6.x、7.x ....$ curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -$ curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -# 安装$ sudo apt-get install -y nodejs 详细说明请参考 官方文档。 CentOS 12345# 根据需要选择不同版本: 6.x、7.x ....$ curl --silent --location https://rpm.nodesource.com/setup_6.x | bash -$ curl --silent --location https://rpm.nodesource.com/setup_7.x | bash -# 安装$ yum -y install nodejs 详细说明请参考 官方文档。 OSX 123...

