When using taro to install dependent packages, NPM ERR is a common occurrence! The code EINTEGRITY problem is probably caused by the NPM local cache.

  1. Delete the package.lock.json file (if you do not want to change this file, restore it after loading)
  2. NPM cache clean –force NPM cache clean –force NPM cache clean –force
  3. NPM I reinstall

Pro-test effective ~