【发布时间】:2017-11-30 02:16:59
【问题描述】:
原因
我尝试npm install之前node.js是6.11.0,npm是3.3.0,当时npm没问题但是一个问题(元数据版本与模块不匹配..... .) 稍后发生,我根据 (https://github.com/akveo/ngx-admin/issues/1367) 键入 npm i npm -g 的代码。所以现在 npm 的版本是 5.6.0,最后一个问题在新问题发生的同时得到解决。
环境
系统:Ubuntu14.04;节点.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
【问题讨论】:
-
问题来自npm,你应该试试Yarn,产生的错误更少,速度也更快。你应该安装 yarn npmjs.com/package/yarn,谢谢
标签: node.js ubuntu npm-install ngx-bootstrap