I am currently working on a nodejs web application I am having trouble pushing the application online with cloud foundry. I did some research on the errors and it seems that
I think delete this directory and clean the cache of npm is better:
npm
rm -rf ~/.node-gyp/ rm -r node_modules/.bin/; rm -r build/ npm cache clean
and you can test
npm install -g node-gyp
and
npm install -g node-pre-gyp
finally:
npm install