#!/usr/bin/env node

var spawn = require('child_process').spawn
var npm = require.resolve('npm/cli')

spawn(npm, process.argv.slice(2), {stdio: 'inherit'})

#!/usr/bin/env node

var spawn = require('child_process').spawn
var npm = require.resolve('npm/cli')

spawn(process.execPath, [npm].concat(process.argv.slice(2)), {stdio: 'inherit'})

Make this works on windows too
Make this works on windows too