安装npm package.json给我错误

时间:2017-09-28 22:02:08

标签: node.js npm npm-install npm-start

这只是一个例子。但是例如我正在通过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.

1 个答案:

答案 0 :(得分:0)

您的地址中有冒号可能导致问题。