nrm icon indicating copy to clipboard operation
nrm copied to clipboard

what happen for this case

Open liuseen-l opened this issue 1 year ago • 5 comments

/usr/local/lib/node_modules/nrm/cli.js:9 const open = require('open'); ^

Error [ERR_REQUIRE_ESM]: require() of ES Module /usr/local/lib/node_modules/nrm/node_modules/open/index.js from /usr/local/lib/node_modules/nrm/cli.js not supported. Instead change the require of index.js in /usr/local/lib/node_modules/nrm/cli.js to a dynamic import() which is available in all CommonJS modules. at Object. (/usr/local/lib/node_modules/nrm/cli.js:9:14) { code: 'ERR_REQUIRE_ESM' }

Node.js v18.15.0 C02F63FKMD6R:1.js bytedance$

liuseen-l avatar Mar 24 '23 09:03 liuseen-l