After nodejs is successfully installed, npm cannot run, prompting failed to replace env incomconfig.

  node.js, question

In the morning, after installing nodejs, I have always been prompted for errors. I have reconfigured the system variables, repaired the computer, uninstalled and reinstalled nodejs, restarted the computer, or prompted for errors!
Anyone who has encountered similar mistakes can help solve them?

clipboard.png

clipboard.png

Please try the following methods:
1. edit.npmrc or npmrc
WindowsC:\Program Files\nodejs\node_modules\npmUnder the directory.

2. Find ${APPDATA} and replace it
find${APPDATA}Variable and replace withC:\nodejs\node_modules\npm, which may be replaced as follows.

prefix=C:\nodejs\node_modules\npm\npm

3. Save the file and try again