NPM警告 - " ...也是节点核心模块的名称。"

时间:2015-02-17 21:40:46

标签: node.js warnings package.json

我的节点应用在运行npm install或安装新模块时会不断显示以下警告。我是否在某处不必要地宣布这些模块,或者这是预期的行为?

npm WARN package.json fs@0.0.2 fs is also the name of a node core module.
npm WARN package.json fs@0.0.2 No description
npm WARN package.json fs@0.0.2 No repository field.
npm WARN package.json fs@0.0.2 No README data
npm WARN package.json http@0.0.0 http is also the name of a node core module.
npm WARN package.json http@0.0.0 No description
npm WARN package.json http@0.0.0 No repository field.
npm WARN package.json http@0.0.0 No README data
npm WARN package.json querystring@0.2.0 querystring is also the name of a node core module.

1 个答案:

答案 0 :(得分:0)

这些是可以解决的问题

  • 卸载fs&重新安装fs
  • npm cache clean
  • 删除node_modules文件夹并重新运行npm install