If node is installed successfully, node-v is normal and npm-v reports an error. How to solve this problem?

problem description

node-v normal, npm-v error:
clipboard.png

npm install:
clipboard.png

npm run dev :
clipboard.png

npm run build

nodenpm -vvue-clinodevue-cli

C:UsersAdministratorAppDataRoamingnpmnpm-cache
clipboard.png

Nov.03,2021

reference link

configure environment variables according to this tutorial


Uninstall nodejs and reinstall


have you found a solution now?


has the landlord solved it?


image.png the same error is achieved by deleting the .node _ repl_history
.npmrc files under C:Users1 and querying npm-v again

.
Menu