美文网首页
How to manage Taro by using nvm?

How to manage Taro by using nvm?

作者: 凸大愚若智凸 | 来源:发表于2020-12-27 17:55 被阅读0次
  • Check node version
$ node -v
  • As for Taro 3.x, requires node v12, so install node v12 if not
$ nvm use v12
  • Install Taro CLI under .nvm/version/node/<version> globally
    Use npm -g instead of yarn global, yarn global will not install global packages under .nvm
$ npm install -g @tarojs/cli
  • Check Taro info
$ which Taro # ~/.nvm/versions/node/v12.16.1/bin/taro
$ taro info

相关文章

网友评论

      本文标题:How to manage Taro by using nvm?

      本文链接:https://www.haomeiwen.com/subject/pcnonktx.html