首页 > 解决方案 > 使用 npm 安装任何软件包时出错

问题描述

当我安装任何软件包时,我会收到此错误。

npm 错误!代码 E500

npm 错误!500 内部服务器错误:jsdom@latest

我的 npm 发生了什么?

标签: node.jsnpmnpm-install

解决方案


好的,我删除了所有,我安装了节点 v8.11.3 和 npm 5.6.0,但在终端中它建议我在最后一个版本更新 npm,但现在显示这个错误

npm i -g npm

npm ERR! code EINTEGRITY

npm ERR! sha512-e38cCtJ0lEjLXXpc4twEfj8Xw5hDLolc2Py87ueWnUhJfZ8GA/5RVIeD+XbSr1+aVRGsRsdtLdzUNO63PvQJ1w== integrity checksum failed when using sha512: wanted sha512-e38cCtJ0lEjLXXpc4twEfj8Xw5hDLolc2Py87ueWnUhJfZ8GA/5RVIeD+XbSr1+aVRGsRsdtLdzUNO63PvQJ1w== but got sha512-mtehl59WPxzYV2c2doa5MJ8+VJ7LI1VXWYPxyrfupTSGLZfzMrtGqxmi3nyTRj44+4zunOe0O2aNx3JLFUkiSA==. (5376652 bytes)

npm ERR! A complete log of this run can be found in: npm ERR! /home/haroldv22/.npm/_logs/2018-06-15T13_02_32_098Z-debug.log


推荐阅读