npm install出现问题:run 'npm audit fix' to fix them, or 'npm audit' for details(安装babel)

从上图看,缺少一个package.json文件

使用 npm init 进行创建

npm install出现问题:run 'npm audit fix' to fix them, or 'npm audit' for details(安装babel)

npm install出现问题:run 'npm audit fix' to fix them, or 'npm audit' for details(安装babel)

npm install出现问题:run 'npm audit fix' to fix them, or 'npm audit' for details(安装babel)

执行上图中的命令

npm install出现问题:run 'npm audit fix' to fix them, or 'npm audit' for details(安装babel)

然后再次检测

npm install出现问题:run 'npm audit fix' to fix them, or 'npm audit' for details(安装babel)

再次使用命令行:npm install --save-dev babel-preset-env(安装babel插件)

npm install出现问题:run 'npm audit fix' to fix them, or 'npm audit' for details(安装babel)

不会出现报错,就等着一直安装就行

npm install出现问题:run 'npm audit fix' to fix them, or 'npm audit' for details(安装babel)

相关文章: