无法通过 npm 安装 redux?
Cannot install redux through npm?
运行 npm install redux 报错:
npm ERR! fetch failed https://registry.npmjs.org/lodash-es/-/lodash-es-4.6.0.tgz
npm WARN retry will retry, error on last attempt: Error: fetch failed with status code 404
我认为它与 lodash-es 有关,因为我也无法安装它。不过其他所有软件包都可以正常工作。
我遇到了同样的错误。我得到了 404 和 502 状态代码。听起来在 npm 上托管包一定有问题。我也在尝试通过 npm 安装 redux。
我通过更改 package.json
中的 lodash-es 版本临时修复了它
"lodash-es": "~4.0.0"
错误 404 表示当前版本的 npm 不提供所需的包。您应该尝试更新 npm 本身。
>$ sudo npm install npm -g
>$ password:
sudo 在您的情况下可能是可选的。
运行 npm install redux 报错:
npm ERR! fetch failed https://registry.npmjs.org/lodash-es/-/lodash-es-4.6.0.tgz
npm WARN retry will retry, error on last attempt: Error: fetch failed with status code 404
我认为它与 lodash-es 有关,因为我也无法安装它。不过其他所有软件包都可以正常工作。
我遇到了同样的错误。我得到了 404 和 502 状态代码。听起来在 npm 上托管包一定有问题。我也在尝试通过 npm 安装 redux。
我通过更改 package.json
中的 lodash-es 版本临时修复了它"lodash-es": "~4.0.0"
错误 404 表示当前版本的 npm 不提供所需的包。您应该尝试更新 npm 本身。
>$ sudo npm install npm -g
>$ password:
sudo 在您的情况下可能是可选的。