项目用到ansi-codes模块,而这个模块运行npm安装,却安装失败。。。。Npm install 结果如下:
This package name is not currently in use, but was formerly occupied by a popular package. To avoid malicious use, npm is hanging on to the package name, but loosely, and we'll probably give it to you if you want it.
解释就是ansi-codes这个包名存在恶意使用,为此npm网站停止这个模块。。。。
那么只能下载代码,然后手动离线安装了。。。
找到项目地址:
https://github.com/azer/ansi-codes.git
安装:
npm install "D:\ansi-codes" -g
博客地址:http://blog.yoqi.me/?p=2484
这篇文章还没有评论