If the current nodejs version is an out-of-date version, it may be possible to use a module that does not match the current version.
In this case, you may need to update your nodejs to the latest version, as follows:
1 | node -v //Check node version |
※ Occasionally, while installing the version management plug-in, the version is too low to be installed, in this case, you must reinstall it directly from the website.
1 | n latest //the latest version |
Update nodejs and then update npm.
1 | npm -v //Check npm version |
Check last nodejs, npm version
1 | node -v |