diff --git a/bin/index.js b/bin/index.js index 7c81737..ecd8d13 100644 --- a/bin/index.js +++ b/bin/index.js @@ -3,7 +3,7 @@ const npx = require('libnpx') const path = require('path') -const NPM_PATH = path.join(__dirname, 'node_modules', '.bin', 'npm') +const NPM_PATH = path.join(__dirname, 'node_modules', 'npm', 'bin', 'npm-cli.js') const parsed = npx.parseArgs(process.argv, NPM_PATH) parsed.npxPkg = path.join(__dirname, 'package.json') diff --git a/test/util/npx-bin.js b/test/util/npx-bin.js index a6a1c84..95b315e 100644 --- a/test/util/npx-bin.js +++ b/test/util/npx-bin.js @@ -3,6 +3,6 @@ const npx = require('../../index.js') const path = require('path') -const NPM_PATH = path.join(__dirname, '../..', 'node_modules', '.bin', 'npm') +const NPM_PATH = path.join(__dirname, '../..', 'node_modules', 'npm', 'bin', 'npm-cli.js') npx(npx.parseArgs(process.argv, NPM_PATH))