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

deno install --allow-scripts indefinitely stuck on - [email protected]: running 'postinstall' script #26904

Open
Milner39 opened this issue Nov 17, 2024 · 2 comments · May be fixed by #26984
Open

Comments

@Milner39
Copy link

Version: Deno 2.0.6

Hello, i'm trying to migrate a SvelteKit project from Node to Deno but I've found some strange behaviour when installing dependencies that prevents deno install from completing.

deno.json:

{
    "tasks": {
        "web:dev": "vite dev --config ./vite.config.mts",
	"web:build": "vite build --config ./vite.config.mts",
	"web:preview": "vite preview --config ./vite.config.mts",
	"web:serve": "node -r dotenv/config ./build"
    },
    "imports": {
        "@std/fs": "jsr:@std/[email protected]",
        "@std/path": "jsr:@std/[email protected]",

        "@sveltejs/adapter-node": "npm:@sveltejs/[email protected]",
	"@sveltejs/kit": "npm:@sveltejs/[email protected]",
	"@sveltejs/vite-plugin-svelte": "npm:@sveltejs/[email protected]",
	"svelte": "npm:[email protected]",
	"vite": "npm:[email protected]",
        "dotenv": "npm:[email protected]"
    },
    "nodeModulesDir": "auto"
}

output:

deno install --allow-scripts
Initialize ⢿ [05:33] 84/85
 - [email protected]: running 'postinstall' script

No matter how long I leave it, is just gets stuck.
Sometimes closing the terminal and restarting the command works but very rarely.

@teddybee
Copy link

teddybee commented Nov 21, 2024

Same issue here with Deno 2.1.0. I stopped it after an hour.
[email protected]: running 'postinstall' script

@bartlomieju
Copy link
Member

Does esbuild actually work correctly if you stop the install script? Running it for esbuild shouldn't really be necessary, because esbuild ships with prebuilt binaries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants