gpt4 book ai didi

node.js - 安装 ngx-admin 的库时 npm install 过程中出现问题

转载 作者:行者123 更新时间:2023-12-04 19:01:14 26 4
gpt4 key购买 nike

原因

我尝试 npm install以前当node.js是6.11.0,npm是3.3.0时,当时npm还可以,但是后来出现问题(元数据版本与模块不匹配......),我输入了一个npm i npm -g的代码根据 (https://github.com/akveo/ngx-admin/issues/1367) 。所以现在 npm 的版本是 5.6.0 ,最后一个问题在新问题发生的同时得到解决。

环境

系统:Ubuntu14.04; Node .js:6.12.0; npm:5.6.0

问题

kris-allen@krisallen:~/ngx-admin$ npm install
npm WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning EINTEGRITY: sha512-WIr7iDkdmdbxu/Gh6eKEZJL6KPE74/5MEsf2whTOFNxbIoIixogroLdKYqB6FDav4Wavh/lZdzzd3b2KxIXC5Q== integrity checksum failed when using sha512: wanted sha512-WIr7iDkdmdbxu/Gh6eKEZJL6KPE74/5MEsf2whTOFNxbIoIixogroLdKYqB6FDav4Wavh/lZdzzd3b2KxIXC5Q== but got sha1-EfgjGPX+e7LNIpZaEI6TBiCCFtg=. (1837200 bytes)
npm WARN registry Using stale package data from https://registry.npmjs.org/ due to a request error during revalidation.
npm WARN tar zlib error: unexpected end of file
npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:
npm ERR! <https://github.com/npm/npm/issues>

npm ERR! A complete log of this run can be found in:
npm ERR! /home/kris-allen/.npm/_logs/2017-11-29T19_48_56_963Z-debug.lo

图为研究员:
enter image description here

最佳答案

如你看到的:

npm ERR! This is an error with npm itself. Please report this error at:
npm ERR! <https://github.com/npm/npm/issues>

因此,请使用上述日志向 npm 本身报告此问题:

npm ERR! A complete log of this run can be found in:
npm ERR! /home/kris-allen/.npm/_logs/2017-11-29T19_48_56_963Z-debug.lo

关于node.js - 安装 ngx-admin 的库时 npm install 过程中出现问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47564850/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com