Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create error in wiindows11 #122

Closed
caesar1shi opened this issue Dec 17, 2023 · 9 comments
Closed

create error in wiindows11 #122

caesar1shi opened this issue Dec 17, 2023 · 9 comments
Assignees
Labels

Comments

@caesar1shi
Copy link
Contributor

node:internal/process/esm_loader:40
internalBinding('errors').triggerUncaughtException(
^

[Error: ENOENT: no such file or directory, lstat 'F:\F:.pnpm-store\v3\tmp\dlx-25016\node_modules.pnpm\[email protected]\node_modules\create-nue\simple-crm'] {
errno: -4058,
code: 'ENOENT',
syscall: 'lstat',
path: 'F:\F:\.pnpm-store\v3\tmp\dlx-25016\node_modules\.pnpm\[email protected]\node_modules\create-nue\simple-crm'
}

pnpm create nue@latest command error, environment: windows11, Node.js v20.10.0

@tipiirai
Copy link
Contributor

Nue is currently developed under Mac only so Windows support is so-and-so. However, there will be a new version tomorrow that might fix this issue. Fingers crossed.

@tipiirai tipiirai self-assigned this Dec 18, 2023
@tipiirai tipiirai added the bug label Dec 18, 2023
@tipiirai
Copy link
Contributor

Please try with the latest nuekit (v0.1.7)

@ShiMeiWo
Copy link

@tipiirai I tried nuekit on windows 10 and got the following error:

$ node $(which nue) --version
C:\Users\ShiMeiWo\AppData\Local\pnpm\nue:2
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
          ^^^^^^^

SyntaxError: missing ) after argument list
    at internalCompileFunction (node:internal/vm:77:18)
    at wrapSafe (node:internal/modules/cjs/loader:1288:20)
    at Module._compile (node:internal/modules/cjs/loader:1340:27)
    at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
    at Module.load (node:internal/modules/cjs/loader:1207:32)
    at Module._load (node:internal/modules/cjs/loader:1023:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
    at node:internal/main/run_main_module:28:49

Node.js v20.10.0

The runtime environment is:.

node: v20.10.0
pnpm: 8.12.1
nuekit: v0.1.7

Please take a moment to check it out. Thx!

@alexnguyennz
Copy link

@tipiirai I tried nuekit on windows 10 and got the following error:

$ node $(which nue) --version
C:\Users\ShiMeiWo\AppData\Local\pnpm\nue:2
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
          ^^^^^^^

SyntaxError: missing ) after argument list
    at internalCompileFunction (node:internal/vm:77:18)
    at wrapSafe (node:internal/modules/cjs/loader:1288:20)
    at Module._compile (node:internal/modules/cjs/loader:1340:27)
    at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
    at Module.load (node:internal/modules/cjs/loader:1207:32)
    at Module._load (node:internal/modules/cjs/loader:1023:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
    at node:internal/main/run_main_module:28:49

Node.js v20.10.0

The runtime environment is:.

node: v20.10.0 pnpm: 8.12.1 nuekit: v0.1.7

Please take a moment to check it out. Thx!

The script that's trying to run there won't work on Windows - I have this issue as well. It would probably be easier to use Bun with WSL for now.

@dexslender
Copy link

Same issue with yarn create & windows 11
image

@dexslender
Copy link

dexslender commented Jan 13, 2024

@alexnguyennz I add nuekit in my project then yarn nue and work. Win11 (globally not work for me too :( )
image

@fritx
Copy link
Collaborator

fritx commented Jan 23, 2024

$ node $(which nue) --version
C:\Users\ShiMeiWo\AppData\Local\pnpm\nue:2
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
          ^^^^^^^

SyntaxError: missing ) after argument list

To fix the pnpm shell error, personally npm install -g nuekit is recommended.

npm install -g nuekit
node $(which nue)

ref: Contributing Guide - Linking, Ci Testing and #155
@ShiMeiWo @alexnguyennz

@appurist
Copy link

I'm seeing the same error, with freshly installed bun and nuekit on Windows 11. In my case, it looks like there's a leading backslash on the path before the drive letter. It doesn't seem to matter what template I choose.

> bun create nue@latest test2

T   create-nue
o  Your project directory name:
|  test3
o  Pick a template
|  Simple app
ENOENT: No such file or directory
   errno: -2
 syscall: "copyfile"
   path: "\C:\Users\paul\AppData\Local\Temp\bunx-208408912-create-nue@latest\node_modules\create-nue\simple-app"
x  Canceled
>

@nobkd
Copy link
Collaborator

nobkd commented Aug 18, 2024

Path issues on windows should be fixed (at least in nuekit), and there's a new create command in nuekit (with currently just simple-blog template).
I'll close this, as create-nue package will probably not really be updated.

Feel free to comment, if there are still Windows path issues.

@nobkd nobkd closed this as completed Aug 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants