npm init -y
生成包
npm run test
执行包
包中安装第三方包
{
“name”: “sheng”,
“version”: “1.0.0”,
“description”: “”,
“main”: “index.js”,
“scripts”: {
“test”: “echo “Error: no test specified” && exit 1”
},
“author”: “”,
“license”: “ISC”
}
包名字唯一
main属性 表示入口文件是index.html