一、npm init 创建 package.json 1、package.json :文件里记录项目的描述信息:项目作者、项目描述、项目依赖哪些包、插件配置信息等。 2、npm init -y :跳过提问的问题。