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

Setup error on Windows #60

Open
pwypustek opened this issue Oct 2, 2024 · 5 comments
Open

Setup error on Windows #60

pwypustek opened this issue Oct 2, 2024 · 5 comments
Labels
bug Something isn't working help wanted Extra attention is needed windows
Milestone

Comments

@pwypustek
Copy link

C:\Users\user>deno run -Ar jsr:@pup/pup setup

Running: deno install -qfrg --allow-env --allow-read --allow-write --allow-sys=loadavg,systemMemoryInfo,osUptime,osRelease,uid,gid --allow-net --allow-run --allow-ffi -n pup jsr:@pup/[email protected]
error: Failed caching npm package '@cbor-extract/[email protected]'.

Upgrading failed.
Deno: 1.46.3
Windows: 11

@Hexagon
Copy link
Owner

Hexagon commented Oct 2, 2024

I do not have a windows computer available atm, so i can not test myself. But It would be interesting to see the result if you try running the same command in a clean (empty) folder? I guess your user dir could be cluttered with a node-modules folder and other possibly conflicting files.

@pwypustek
Copy link
Author

I checked in an empty folder, and the result is the same.
I also checked on a completely different computer with Windows 10, and the same error occurs.

@Hexagon
Copy link
Owner

Hexagon commented Oct 3, 2024

Does the full installation command work - deno install -qfrg --allow-env --allow-read --allow-write --allow-sys=loadavg,systemMemoryInfo,osUptime,osRelease,uid,gid --allow-net --allow-run --allow-ffi -n pup jsr:@pup/[email protected] ?

@Hexagon Hexagon changed the title Setup error Setup error on Windows Oct 3, 2024
@pwypustek
Copy link
Author

This command executed without any error, and the 'pup' command works fine, I checked it, and it looks like everything is ok, thanks!

@Hexagon Hexagon added bug Something isn't working windows labels Oct 4, 2024
@Tmktahu
Copy link

Tmktahu commented Oct 10, 2024

Can confirm I ran into the same problem. Can also confirm the provided full installation command worked.

This is the error that I got:

C:\Users\Apples\Desktop\pup>deno run -Ar jsr:@pup/pup setup
Warning The following packages contained npm lifecycle scripts (preinstall/install/postinstall) that were not executed:
┠─ npm:[email protected]
┃
┠─ This may cause the packages to not work correctly.
┠─ Lifecycle scripts are only supported when using a `node_modules` directory.
┠─ Enable it in your deno config file:
┖─ "nodeModulesDir": "auto"

Running: deno install -qfrg --allow-env --allow-read --allow-write --allow-sys=loadavg,systemMemoryInfo,osUptime,osRelease,uid,gid --allow-net --allow-run --allow-ffi -n pup jsr:@pup/[email protected]
error: Failed caching npm package '@cbor-extract/[email protected]'.
    0: failed to unpack `package/node.napi.node` into `\\?\C:\Users\Apples\AppData\Local\deno\npm\registry.npmjs.org\@cbor-extract\cbor-extract-win32-x64\2.2.0\node.napi.node`

Upgrading failed.

Changing where I ran the command or whether it was from an administrative cmd prompt did not change anything.

@Hexagon Hexagon added the help wanted Extra attention is needed label Oct 16, 2024
@Hexagon Hexagon modified the milestones: 1.0.3, 1,0.4 Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed windows
Projects
None yet
Development

No branches or pull requests

3 participants