npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path F:\vueworkspace\learnproject/package.json
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, open 'F:\vueworkspace\learnproject\package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! F:\program files\nodejs\node_cache\_logs\2021-07-08T02_29_23_252Z-debug.log
使用 cnpm install 改一下package.json位置,然后就能npm run serve了,稀里糊涂就好了,但是肯定要生成node_module的
博客内容涉及npm安装过程中遇到的错误代码ENOENT,具体表现为无法打开package.json文件。作者通过将package.json移动到正确位置并使用cnpm install成功运行了npm run serve。问题解决后,项目中生成了node_modules目录。
1450

被折叠的 条评论
为什么被折叠?



