Step 1: Go to the \nodejs folder and open the two files npm.cmd and npm by text editor
Step 2: Replace prefix -g
with prefix --location=global
for the line number 12 of the npm.cmd file and line number 23 of the npm file
Step 1: Go to the \nodejs folder and open the two files npm.cmd and npm by text editor
Step 2: Replace prefix -g
with prefix --location=global
for the line number 12 of the npm.cmd file and line number 23 of the npm file