xpring-eng / Xpring-SDK-Demo

Demo Code for the Xpring SDK

Home Page:https://xpring.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

npm i or sudo npm i?

LoisRP opened this issue · comments

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.

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.

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

image

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.