npm一些记录
  • npm设置淘宝源

    1
    2
    3
    4
    1.在项目根目录下新建 .npmrc
    写入:
    registry = https://registry.npm.taobao.org
    2. npm config set registry https://registry.npm.taobao.org
  • npm发布包 报错

    1
    2
    3
    4
    no_perms Private mode enable, only admin can publish this module: xxx

    修改npm源为 https://registry.npmjs.org 就行了
    npm config set registry https://registry.npmjs.org
文章作者: webaifei
文章链接: http://yoursite.com/2017/11/09/npm/
版权声明: 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 个人博客