使用淘宝镜像如何安装Scoped packages?
在 npm install
时, 貌似所有类似 @bigfunger/decompress-zip
这样的 scoped package
通过淘宝镜像都没法安装,
但改用 npmjs.org
官方镜像就没问题;
有人遇到过类似问题么?求教
npm ERR! Linux 3.10.0-327.3.1.el7.x86_64
npm ERR! argv "/home/xxx/bin/node/bin/node" "/usr/local/bin/npm" "i" "-d"
npm ERR! node v4.2.4
npm ERR! npm v2.14.12
npm ERR! code E404
npm ERR! 404 Not Found: @bigfunger/decompress-zip
npm ERR! 404
npm ERR! 404 '@bigfunger/decompress-zip' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404 It was specified as a dependency of 'kibana'
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! Please include the following file with any support request:
npm ERR! /home/xxx/workspace/kibana/npm-debug.log
2 回复
@i5ting 求助大神
@bigfunger/decompress-zip是private模块,你看你的模块是注册在哪里,如果npmjs.org上的,你就只能切换到npmjs源上。私有模块是无法同步的