先要安装nodejs,初始化项目配置文件package.json,根据情况输入配置参数
npm init
1 test command: 2 git repository: 3 keywords: 4 author: 5 license: (ISC) 6 About to write to E:\temp\20170429\test03\package.json: 7 8 { 9 "name": "test03", 10 "version": "1.0.0", 11 "description": "", 12 "main": "index.js", 13 "scripts": { 14 "test": "echo \"Error: no test specified\" && exit 1" 15 }, 16 "author": "", 17 "license": "ISC" 18 }