-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
$ npm install --save wechaty
$ node mybot.js
There could be some issue when using npm install
in China due to Internet Censorship by GFW(Great Fire Wall).
If you have this kind of issue, you need to switch to use NPM Registry Mirror from Taobao instead of using the default NPM Registry.
You can start to use NPM Registry Mirror from Taobao by any of the following three methods:
npm --registry https://registry.npm.taobao.org install wechaty
npm config set registry https://registry.npm.taobao.org
npm install wechaty
alias cnpm="npm --registry=https://registry.npm.taobao.org \
--cache=$HOME/.npm/.cache/cnpm \
--disturl=https://npm.taobao.org/dist \
--userconfig=$HOME/.cnpmrc"
cnpm install wechaty
Learn more about Taobao Mirror for NPM from:
If your server is inside China, use CDN instead of install directly will great help you to get it done.
npm install chromedriver --chromedriver_cdnurl=https://npm.taobao.org/mirrors/chromedriver
$ npm dist-tag add wechaty@0.5.2 latest
package.json
{
"publishConfig": {
"tag": "next"
}
}
$ NO_HOOK=1 git push origin <tag_name>
NO_HOOK
is introduced here because if we are using the pre-push
hook, then we need to disable it to push tag. The pre-push
script file for Wechaty lives here
npm login --scope=chatie
npm --access=public publish
- One simple trick for JavaScript package maintainers to avoid breaking their user’s software and to ship stable releases How to make use of npm’s package distribution tags to create release channels just like Google Chrome’s
- http://stackoverflow.com/a/5195913/1123955
When we need to publish a STABLE version(the minor version is even), we need to make sure the following modules is all STABLE version:
- wechaty-puppet
- wechaty-puppet-puppeteer
- wechaty-puppet-mock
- wechaty-puppet-wechat4u
- wechaty-puppet-padchat
- wechaty-puppet-ioscat
- wechaty-puppet-hostie
- wechaty - Update CHANGELOG
- wechaty
Getting Started
FAQ
Troubleshooting
Contributors
Wechaty Developer Program
API
Log
Tests
Badge
Projects Using Wechaty
Links
Related Technologies