首页 文章

firebase功能'npm install -g firebase-tools error'

提问于
浏览
0

'npm install -g firebase-tools'输入commond但显示一些错误我正在使用Node v6.11.2,npm 3.10.10 .

C:\ Users \ Tahir Ali Awan> npm install -g firebase-tools npm ERR! Windows_NT 10.0.10586 npm ERR! argv“C:\ Program Files \ nodejs \ node.exe”“C:\ Program Files \ nodejs \ node_modules \ npm \ bin \ npm-cli.js”“install”“ - g”“firebase-tools”npm ERR!节点v6.11.2 npm ERR! npm v3.10.10 npm ERR!对于C:\ Users \ TAHIRA~1 \ AppData \ Local \ Temp \ npm-10928-4df4b0d9 \ registry.npmjs.org \ firebase-tools- \ firebase-tools-3.17.4.tgz npm ERR,shasum检查失败!预计:dde15ee12a6fa9930a4142b7dafd12313f6555d8 npm ERR!实际:f5bab81f9dd43c342c2fda6eedbd23f67c1f82e7 npm ERR!来自:https://registry.npmjs.org/firebase-tools/-/firebase-tools-3.17.4.tgz npm ERR!错误的ERR!如果您需要帮助,可以在以下位置报告此错误:npm ERR! https://github.com/npm/npm/issues npm ERR!请在任何支持请求中包含以下文件:npm ERR! C:\ Users \ Tahir Ali Awan \ npm-debug.log

error

1 回答

  • 2

    试试这两件事:

    • 运行“npm clean cache”清除NPM Cache

    • 尝试将节点版本升级到最新的稳定版本

相关问题