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

Error running benchmark #973

Open
kliu57 opened this issue Nov 18, 2023 · 3 comments
Open

Error running benchmark #973

kliu57 opened this issue Nov 18, 2023 · 3 comments

Comments

@kliu57
Copy link
Contributor

kliu57 commented Nov 18, 2023

Running node ./benchmark/benchmark.js as instructed in CONTRIBUTING.md

See comments thread in PR#971 for more details on this issue.

Error:
image

@rlidwka
Copy link
Member

rlidwka commented Nov 22, 2023

npm i -g --prefix xxx serve will install stuff to different folders. I'm taking serve as an example here because it has less dependencies:

On linux (npm 8.8.0):

xxx/bin
xxx/bin/serve
xxx/lib
xxx/lib/node_modules
xxx/lib/node_modules/serve/
xxx/lib/node_modules/serve/{package files here}

On windows (npm 9.8.1):

xxx/serve
xxx/serve.cmd
xxx/serve.ps1
xxx/node_modules
xxx/node_modules/serve
xxx/node_modules/serve/{package files here}

Need to check why this is happening, is that OS-specific behavior or something else.

@kliu57 kliu57 changed the title Error running benchmark on Windows Error running benchmark Nov 28, 2023
@kliu57
Copy link
Contributor Author

kliu57 commented Nov 28, 2023

npm i -g --prefix xxx serve will install stuff to different folders. I'm taking serve as an example here because it has less dependencies:

On linux (npm 8.8.0):

xxx/bin
xxx/bin/serve
xxx/lib
xxx/lib/node_modules
xxx/lib/node_modules/serve/
xxx/lib/node_modules/serve/{package files here}

On windows (npm 9.8.1):

xxx/serve
xxx/serve.cmd
xxx/serve.ps1
xxx/node_modules
xxx/node_modules/serve
xxx/node_modules/serve/{package files here}

Need to check why this is happening, is that OS-specific behavior or something else.

removed "Windows" from the issue title, since not sure if this is OS-specific

@puzrin
Copy link
Member

puzrin commented Dec 7, 2023

https://www.google.com/search?channel=fs&client=ubuntu&q=npm+--prefix+not+work+in+windows

Seems solution is to repeat path after --prefix Or use cd with extra package.json explicit.

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

3 participants