Closed gucovip closed 9 months ago
Temporarily use npx
to overdo it. nue issue #110
npx create-nue@latest
But if npx
is used now, the following error occurs.
npx create-nue@latest
Need to install the following packages:
create-nue@0.2.1
Ok to proceed? (y)
node_modules/.bin/create-nue: line 1: import: command not found
node_modules/.bin/create-nue: line 2: import: command not found
node_modules/.bin/create-nue: line 4: import: command not found
node_modules/.bin/create-nue: line 5: import: command not found
node_modules/.bin/create-nue: line 7: syntax error near unexpected token `('
node_modules/.bin/create-nue: line 7: `async function copyTemplate(name, to) {'
Gotcha. Makes sense. Isn't 'use strict'
unnecessary with ES6 modules?
@tipiirai OK. I've removed the 'use strict'
.
Hey. Added #!/usr/bin/env bun
to cli.js and bun create
started to work! Works on the latest version (bun create nuekit@latest
. Thanks to the inspiration of this pull request. Thank you @gucovip !
fix compatible with npx