zoukankan      html  css  js  c++  java
  • node.js yarn 更新源

    #1 管理员权限运行 docker 
    docker stop taro
    docker rm taro
    
    #docker run -itd --name taro node:latest
    docker run -itd -v $PWD/:/home/taro --name taro node:latest
    
    docker exec -it taro /bin/bash
    #下面代码是换源
    npm config get registry npm config set registry https:
    //registry.npm.taobao.org/ yarn config get registry yarn config set registry https://registry.npm.taobao.org/ npm config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/ yarn config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/ yarn config delete proxy npm config rm proxy npm config rm https-proxy yarn global add mirror-config-china yarn global add node-sass yarn global add @tarojs/cli yarn install npm rebuild node-sass --save-dev yarn run dev:weapp

     mac 下,得把yarn 全局包 位置修改了 缓存包位置也得改

    #全局位置
    yarn config  set global-folder /Users/wqk/Softwares/.........位置自己选
    #缓存位置
    yarn config set cache-folder /Users/wqk/Softwares/.........位置自己选

    这样基本没啥权限问题了

  • 相关阅读:
    JAVA中的注解小结
    终结任务
    共享资源访问
    基本线程机制
    HashSet、LinkedHashSet、TreeSet
    EnumMap
    LinkedHashMap及其源码分析
    集合迭代器快速失败行为及CopyOnWriteArrayList
    LinkedList
    比特币中的Base58 编码
  • 原文地址:https://www.cnblogs.com/qkstart/p/13513738.html
Copyright © 2011-2022 走看看