node.js - 无法在 Ubuntu 中安装 Grunt

标签 node.js npm gruntjs

:~$ npm install -g grunt
npm http GET https://registry.npmjs.org/grunt
../src/node_crypto_bio.cc:213: size_t node::NodeBIO::Read(char*, size_t): Assertion `read_head_ != write_head_' failed.
Aborted (core dumped)

我尝试安装grunt但得到这个错误。 我已经安装了node和npm。 请有人帮我解决这个问题!

最佳答案

请尝试此命令。

npm 配置集注册表 http://registry.npmjs.org/

关于node.js - 无法在 Ubuntu 中安装 Grunt,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17154905/

相关文章:

node.js - Mongoose 文档中的索引

javascript - 如何检查 Node.js 中是否设置了环境变量?

node.js - Mongoose 填充与聚合

node.js - 带有 node-sass 和 autoprefixer 的 npm

javascript - Grunt - fatal error 未定义不是函数

node.js - 使本地主机端口可通过互联网访问 - NodeJS

node.js - Node 命令仅适用于 root 权限(sudo Node )

node.js - 如何从单个 Node 项目发布多个 NPM 模块?

javascript - 咕噜任务 : start mongod if not running

gruntjs - grunt 更新一项任务中的选项,以便后续任务可以使用它们