这只是一个例子。但是例如,我正在通过 npm 创建一个反应项目,它说它找不到我的 package.json 文件...任何帮助将不胜感激。我还将在创建反应项目时发布该过程的代码。创建任何类型的项目时都会发生这种情况。我已经删除了 Node+Npm 并重新安装了它,但它仍然给我带来了问题。
Thu Sep 2818:00:09React:Node npm start
npm ERR! path /Users/richardjimenez/school/React:Node/package.json
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open '/Users/richardjimenez/school/React:Node/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
Thu Sep 2817:51:50~ npm install --save latest-version
npm WARN saveError ENOENT: no such file or directory, open '/Users/richardjimenez/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/Users/richardjimenez/package.json'
npm WARN richardjimenez No description
npm WARN richardjimenez No repository field.
npm WARN richardjimenez No README data
npm WARN richardjimenez No license field.