4

当我尝试npm install grunt-contrib-build --save-dev使用命令提示符在我的 Windows 7 系统上安装时出现以下错误。

C:\css-base>npm install grunt-contrib-build --save-dev
npm WARN package.json my-project@0.1.0 No README.md file found!
npm http GET https://registry.npmjs.org/grunt-contrib-build
npm http 404 https://registry.npmjs.org/grunt-contrib-build
npm ERR! 404 'grunt-contrib-build' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, or http url, or git url.

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nod
ejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "grunt-contrib-build" "--save
-dev"
npm ERR! cwd C:\css-base
npm ERR! node -v v0.10.3
npm ERR! npm -v 1.2.17
npm ERR! code E404
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     C:\css-base\npm-debug.log
npm ERR! not ok code 0
4

2 回答 2

2

如果有人在尝试安装此插件时发现此问题:

grunt-contrib-build

现在被称为

grunt-usemin

但是可能不支持新插件中的任务,请查看 https://github.com/yeoman/grunt-usemin/issues/3了解更多信息。

于 2013-04-13T05:22:34.443 回答
0

您是否尝试阅读错误消息?

npm 错误!404 'grunt-contrib-build' 不在 npm 注册表中。
npm 错误!404你应该让作者发布它

于 2013-04-13T00:42:28.347 回答