Taro Install Error: permission denied, symlink ‘../lib/node_modules/@tarojs/cli/bin/taro‘ -> ‘/usr/local/bin/tar

The installation taro command NPM install - G @ tarojs/cli reported the following error:

permission denied, symlink '../lib/node_modules/@tarojs/cli/bin/taro' -> '/usr/local/bin/taro'

Cause of error: insufficient authority
solution: sudo NPMI - G @ tarojs/cli

Read More: