使用淘宝镜像如何安装Scoped packages?
发布于 9 年前 作者 ikunsam 3179 次浏览 最后一次编辑是 8 年前 来自 问答

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 求助大神

@ikunsam

@bigfunger/decompress-zip是private模块,你看你的模块是注册在哪里,如果npmjs.org上的,你就只能切换到npmjs源上。私有模块是无法同步的

回到顶部