安装vue报 npm WARN saveError ENOENT: no such file or directory, open 'F:\test\package.json'错误

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/hua_ban_yu/article/details/83146545

在使用npm安装vue时,报npm WARN saveError ENOENT: no such file or directory, open 'F:\test\package.json'错误。

错误原因:项目没有package.json文件导致

解决方案:

使用 npm init -y  生成默认的package.json文件

猜你喜欢

转载自blog.csdn.net/hua_ban_yu/article/details/83146545