for windows user, download Node.js and then,
npm config set registry 'https://registry.npmmirror.com/' --global # ONLY for China user npm install -g yarn yarn config set registry 'https://registry.npmmirror.com/' --global # ONLY for China users