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

Unable to locate the @bytecodealliance/preview2-shim package #482

Open
peter-jerry-ye opened this issue Aug 8, 2024 · 1 comment
Open

Comments

@peter-jerry-ye
Copy link

Hi,

I have both @bytecodealliance/preview2-shim and @bytecodealliance/jco installed with npm install.

{
	"dependencies": {
		"@bytecodealliance/jco": "^1.4.0",
		"@bytecodealliance/preview2-shim": "^0.16.4"
	}
}

When I run npx jco serve xxx.wasm, I got the following error:

(jco serve) Error: Unable to locate the @bytecodealliance/preview2-shim package, make sure it is installed.

It seems that the import.meta.url here:

let preview2ShimPath = fileURLToPath(new URL('../../node_modules/@bytecodealliance/preview2-shim', import.meta.url));

gives me the path to the node_modules/@bytecodealliance/jco/src/cmd/run.js

Versions:

  • Node.js v22.5.1
  • npm / npx v10.8.2
@rajsite
Copy link

rajsite commented Aug 10, 2024

Seeing similar behavior node 20, same packages, Windows (in-case it's OS-specific).

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

No branches or pull requests

2 participants