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/.........位置自己选

    这样基本没啥权限问题了

  • 相关阅读:
    node 读取文件
    jQuery全局事件处理函数
    可以发送不同源请求的方式
    ajax 高度封装的函数
    jQuery中AJAX的回调
    jQuery中对AJAX的封装
    ajax 基本的封装
    AJAX 返回数据问题
    ajax 关于响应类型
    动态渲染数据到表格中
  • 原文地址:https://www.cnblogs.com/qkstart/p/13513738.html
Copyright © 2011-2022 走看看