Closed developerasun closed 2 years ago
Describe the bug
NPM inquirer package throwing require not support error
To Reproduce Steps to reproduce the behavior:
{ "name": "my-cli", "version": "1.0.0", "description": "", "main": "src/index.js", "bin": { "@developerasun/create-project": "bin/create-project", "create-project": "bin/create-project" }, "publishConfig": { "access": "public" }, "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "keywords": [], "author": "", "license": "ISC", "dependencies": { "arg": "^5.0.2", "esm": "^3.2.25", "inquirer": "^9.0.0" }, "packageManager": "npm@8.5.5" }
Expected behavior
inquirer executes an interactive terminal question
Screenshots
Additional context Add any other context about the problem here.
Labeling Add a proper label for the issue
#!/usr/bin/env node require = require("esm")(module/*, options*/)
import * as main from "../src/cli.js"; main.cli(process.argv);
https://github.com/developerasun/myDocumentBox-CS/issues/37
Describe the bug
NPM inquirer package throwing require not support error
To Reproduce Steps to reproduce the behavior:
Expected behavior
inquirer executes an interactive terminal question
Screenshots
Additional context Add any other context about the problem here.
Labeling Add a proper label for the issue