从0开始学习微信与Salesforce集成 - Day1

开发工具:微信开发者工具 + VSCode
VSCode插件

  1. ESLint
  2. Vetur
  3. minapp
  4. wechat-snippet
  5. wxml
    环境:Node.js LTS
    框架:Vue

Taro入门教程:https://taro-docs.jd.com/taro/docs/guide/
Vue文档:https://cn.vuejs.org/v2/guide/
Taro Github:https://github.com/nervjs/taro

项目初始化:

$ taro init
$ yarn
$ yarn dev:weapp
$ yarn build:weapp

问题1:taro init无法直接编译[dist/app.json: dist/app.json 未找到]
解决方案:https://taro-docs.jd.com/taro/docs/GETTING-STARTED#%E8%BF%90%E8%A1%8C

问题2:TypeScript是什么?
答:JavaScript 的强类型版本
参考:https://www.cnblogs.com/yangshuzhong/articles/11412062.html

问题3:[npm ERR! Invalid name]
答:name不允许使用大写字母,中文空格

问题4:yarn和npm的区别。
答:yarn和npm都是包管理工具,但是yarn是崭新的,经过重新设计的npm客户端。
参考:https://xcx.topsage.com/8986.html

问题5:[info There appears to be trouble with your network connection. Retrying…]
解决方案1:安装好后更换淘宝镜像

yarn config set registry https://registry.npm.taobao.org
yarn config delete proxy
npm config rm proxy
npm config rm https-proxy
安装cnpm镜像
npm install -g cnpm --registry=https://registry.npm.taobao.org
使用代理registry
npm config set registry https://registry.npm.taobao.org

参考文档:https://blog.csdn.net/m0_37859032/article/details/95921667

解决方案2:可能是yarn没有权限。安装时用管理员身份安装即可。Windows下用 PowerShell(管理员) 安装即可。

npm install yarn -g

参考文档:https://blog.csdn.net/u012172536/article/details/104553853

仍在努力更新中…

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值