Skip to content

Instantly share code, notes, and snippets.

@timfpark
Last active August 29, 2015 14:03
Show Gist options
  • Save timfpark/10d374a11a02565b1adf to your computer and use it in GitHub Desktop.
Save timfpark/10d374a11a02565b1adf to your computer and use it in GitHub Desktop.
### On your computer
# 1. Join "MongoDB"
# 2. Trick gyp into installing the header files
npm install node-gyp -g
node-gyp install 0.10.29
cd ~/.node-gyp
tar -czxf 0.10.29.tgz 0.10.29/
scp 0.10.29.tgz pi@$IP_ADDRESS:0.10.29.tgz
### On the pi
ssh pi@$IP_ADDRESS
pwd # /home/pi
mkdir .node-gyp
cd .node-gyp
rm -rf 0.10.29
mv ../0.10.29.tgz .
tar -zxvf 0.10.29
### Assuming that you're logical
cd ~/training-iot/materials/1-BMP085
npm config set loglevel info
npm config set spin false
npm cache clean
npm install
@nunoveloso
Copy link

Should be:

tar -zcvf 0.10.29.tgz 0.10.29/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment