Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

npm i or sudo npm i? #6

Open
LoisRP opened this issue Feb 20, 2020 · 3 comments
Open

npm i or sudo npm i? #6

LoisRP opened this issue Feb 20, 2020 · 3 comments

Comments

@LoisRP
Copy link
Contributor

LoisRP commented Feb 20, 2020

I followed the instructions in node/README.md in the node-deps branch.

# Install dependencies
npm i

However, I got errors unless I changed this to
sudo npm i
Once I did that, I was able to successfully run the demo at src/index.js. Just checking if this is an idiosyncrasy of my system, or something that should be changed in the doc.

@keefertaylor
Copy link
Contributor

There's no global dependencies so you shouldn't need to use sudo ever.
https://medium.com/@ExplosionPills/dont-use-sudo-with-npm-still-66e609f5f92

Can you provide more details about your system.

@LoisRP
Copy link
Contributor Author

LoisRP commented Feb 24, 2020

So far as I know, it's a standard-issue Macbook Pro. What details would be helpful?

image

@keefertaylor
Copy link
Contributor

The errors you received are potentially helpful.

You shouldn't need sudo on OSX. Sometimes node permissions are wonky on linux boxes, but even then we're not installing anything globally so it shouldn't matter.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants