Maybe compilation is not done because and existing module. Try using rebuild and then clean for the old modules.
node-gyp configure --target=$(node --version)node-gyp rebuildnode-gyp clean
hope this help