Install koa error Cannot find module’internal/fs’

Scenario: Node and NPM are installed locally, but the node version is lower than 8.0.0, so the node version management tool N is used to upgrade the version. After the upgrade, koA is installed and an error is reported

Cause: Changes to the node version on which NPM depends
Solution: 1. Remove NPM NPM Uninstall NPM-g 2. Reinstall Node, because NPM will be installed at the same time that Node is installed

Reproduced in:

Read More: