ENOENT:没有这样的文件或目录,打开package.json

时间:2017-12-14 14:44:11

标签: node.js npm package.json enoent

[node v0.6.11, npm v4.2.0]

使用以下命令安装react和react-dom:

pickledEgg> npm install react react-dom --save

成功:

"dependencies": {
  "angular": "^1.6.7",
  "jquery": "^3.2.1",
  "lodash": "^4.17.4",
  "react": "^16.2.0",
  "react-dom": "^16.2.0"
},

...但我收到了以下所有丑陋的警告。

这里发生了什么?如何正确处理这些警告,而不是简单地压制它们?

npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\KMiklas\Keith\2017\angular\apple\node_modules\autopref
ixer\package.json'
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\KMiklas\Keith\2017\angular\apple\node_modules\css-load
er\package.json'
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\KMiklas\Keith\2017\angular\apple\node_modules\cssnano\
package.json'
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\KMiklas\Keith\2017\angular\apple\node_modules\icss-uti
ls\package.json'
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\KMiklas\Keith\2017\angular\apple\node_modules\normaliz
e-url\package.json'
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\KMiklas\Keith\2017\angular\apple\node_modules\postcss\
package.json'
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\KMiklas\Keith\2017\angular\apple\node_modules\postcss-
calc\package.json'
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\KMiklas\Keith\2017\angular\apple\node_modules\postcss-
colormin\package.json'
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\KMiklas\Keith\2017\angular\apple\node_modules\postcss-
convert-values\package.json'
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\KMiklas\Keith\2017\angular\apple\node_modules\postcss-
discard-comments\package.json'
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\KMiklas\Keith\2017\angular\apple\node_modules\postcss-
discard-duplicates\package.json'
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\KMiklas\Keith\2017\angular\apple\node_modules\postcss-
discard-empty\package.json'
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\KMiklas\Keith\2017\angular\apple\node_modules\postcss-
discard-overridden\package.json'
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\KMiklas\Keith\2017\angular\apple\node_modules\postcss-
discard-unused\package.json'
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\KMiklas\Keith\2017\angular\apple\node_modules\postcss-
filter-plugins\package.json'
// etc...

0 个答案:

没有答案