' npm install -g firebase-tools'输入commond但显示一些错误 我正在使用Node v6.11.2,npm 3.10.10。
C:\ Users \ Tahir Ali Awan> npm install -g firebase-tools 错误的ERR! Windows_NT 10.0.10586 错误的ERR! argv" C:\ Program Files \ nodejs \ node.exe" " C:\ Program Files \ nodejs \ node_modules \ npm \ bin \ npm-cli.js" "安装" " -g" "火力工具" 错误的ERR!节点v6.11.2 错误的ERR! npm v3.10.10 错误的ERR! C:\ Users \ TAHIRA~1 \ AppData \ Local \ Temp \ npm-10928-4df4b0d9 \ registry.npmjs.org \ firebase-tools- \ firebase-tools-3.17.4.tgz的shasum检查失败 错误的ERR!预计:dde15ee12a6fa9930a4142b7dafd12313f6555d8 错误的ERR!实际:f5bab81f9dd43c342c2fda6eedbd23f67c1f82e7 错误的ERR!来自:https://registry.npmjs.org/firebase-tools/-/firebase-tools-3.17.4.tgz 错误的ERR! 错误的ERR!如果您需要帮助,可以在以下位置报告此错误: 错误的ERR! https://github.com/npm/npm/issues 错误的ERR!请在任何支持请求中包含以下文件: 错误的ERR! C:\ Users \ Tahir Ali Awan \ npm-debug.log
答案 0 :(得分:2)
尝试这两件事:
运行“npm clean cache”
尝试将节点版本升级到最新的稳定版本