Next.js Discord

Discord Forum

Error npm

Unanswered
Anh Tú posted this in #help-forum
Open in Discord
Does anyone have this error? I can't do any functions with npm anymore, please help me

8 Replies

Cape horse mackerel
can you try to run sudo npm i
@Cape horse mackerel can you try to run `sudo npm i`
Oh it really works. Please tell me what effect sudo has because normally I can run npm
Cape horse mackerel
sudo command lets you run the command as "admin", this can make it work for now, but from now on you should investigate a problem that you have with npm
So that's just a temporary way to solve the problem?
Cape horse mackerel
yeah, you can try to reinstall node/npm, remove npm cache, etc
I just switched to Mac not long ago, can I ask if deleting the cache you mentioned is it?
Cape horse mackerel
you have a npm command to remove the npm cache
npm cache clean --force
doesn't seem very good