Just call `npm` directly since `npm init create-neon` doesn't pass the environment variables through to npx.
import die from './die';
import shell from './shell';
-const NPM: string = process.env.npm_execpath || die('create-neon must be run from `npm init`');
-const NODE: string = process.env.npm_node_execpath || die('create-neon must be run from `npm init`');
-
export default async function npmInit(): Promise<number> {
- let code = await shell(NODE, [NPM, 'init']);
+ let code = await shell('npm', ['init']);
if (code == null) {
process.exit(1);
