新建一个目录作为工程目录 1、创建package.json文件 npm init 具体参考 https://blog.youkuaiyun.com/Generon/article/details/73921055