got /usr/bin/env: ‘node’: Permission denied on typing npm cache clean -f

Asked by vitanshu sahu

got /usr/bin/env: ‘node’: Permission denied on typing npm cache clean -f

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Try:

sudo npm cache clean -f

Your user won't have access to the folder without sudo

Can you help with this problem?

Provide an answer of your own, or ask vitanshu sahu for more information if necessary.

To post a message you must log in.