0

I want to create a new node.js app in PhpStorm but it can't build it as npm requires root to install. I can't seem to find a way to make PhpStorm run npm as su.

Is there a way to do so?

1 Answer 1

1

Installing with sudo will likely result in more issues. I'd rather suggest making sure that your user (the one you run WebStorm with) has the right privileges in ~/.npm, and give it the needed permissions ( 'sudo chown -R $USER ~/.npm' )

Sign up to request clarification or add additional context in comments.

1 Comment

Thank you, that's exactly what I figured out, too.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.