To don't pollute my system I use docker for development.
docker build -t my-addon .
docker run -i -t my-addon /bin/bash
node-gyp configure
node-gyp build
node test.js
# Delete all containers
docker rm $(docker ps -a -q)
# Delete all images
docker rmi $(docker images -q)