Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm使用指南 #50

Open
zhouzhongyuan opened this issue Apr 26, 2017 · 2 comments
Open

npm使用指南 #50

zhouzhongyuan opened this issue Apr 26, 2017 · 2 comments

Comments

@zhouzhongyuan
Copy link
Owner

No description provided.

@zhouzhongyuan
Copy link
Owner Author

zhouzhongyuan commented Apr 26, 2017

错误1

执行"npm install"的时候经常遇到如下错误。

⸨    ░░░░░░░░░░░░░░⸩ ⠦ fetchMetadata: sill mapToRegistry uri https://registry.npmjs.org/prop-types
  • fetch Metadata: 抓取元数据。
  • sill: 窗台、门槛、阈。只是消息的等级。类似与常用的'log','error'。另外,同为消息等级的还有verb。
  • map To Registry: 映射到注册表。

我知道是网络的问题。公司的网络限制VPN和SS,公司的网络同样限制https://npm.taobao.org/, 公司的网速200k。

向网管申请https://npm.taobao.org/权限,花费时间1分钟,问题解决。

遇到问题不要等,要向主管部门(IT)提出申请,而不是向老大申请。

=================================================

使用cnpmjs创建一个缓存。

npm --registry=http://1.1.8.30:7001 --cache=$HOME/.npm/.cache/cnpm --userconfig=$HOME/.cnpmrc --verb install

一个比较大的项目,2分钟之内可以下载完成。

@zhouzhongyuan
Copy link
Owner Author

zhouzhongyuan commented Jun 17, 2017

Find all versions

npm show react-router versions
npm view <package> time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant