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

标签 node.js ubuntu npm-install ngx-bootstrap

原因

我尝试 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/

相关文章:

javascript - Angularjs 项目中注入(inject)未知提供者

node.js - Azure网站 Node 进程生命周期

javascript - 获取Mac中所有可见应用程序窗口进程的窗口标题和应用程序/进程名称

ubuntu - 尝试建立第二个站点

java - 上下文路径中的应用程序无法启动 Tomcat 7 Ubuntu

php - PHP中的exec不起作用

node.js - NPM node-sass 安装失败

node.js - 我无法安装 node-libcurl 模块

javascript - 客户端到服务器端 Node.js

node.js - 是否可以验证和签署 Node.js "native"中的数据(不使用对 OpenSSL 的外部调用)?