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

[Bug]: Unable to install Vue storefront with npx cli command #6833

Open
1 of 3 tasks
thealiraza opened this issue Nov 19, 2022 · 4 comments
Open
1 of 3 tasks

[Bug]: Unable to install Vue storefront with npx cli command #6833

thealiraza opened this issue Nov 19, 2022 · 4 comments
Labels
bug Bug reports

Comments

@thealiraza
Copy link

Describe the Bug

ModuleLoadError: [MODULE_NOT_FOUND] require failed to load
› /home/ali/.npm/_npx/374245/lib/node_modules/@vue-storefront/cli/dist/comma
› nds/generate/store.js: Cannot find module 'node:http'
› Require stack:
› - /home/ali/.npm/_npx/374245/lib/node_modules/@vue-storefront/cli/node_mod
› ules/node-fetch-native/dist/shared/node-fetch-native.bd0cd7ae.cjs
› - /home/ali/.npm/_npx/374245/lib/node_modules/@vue-storefront/cli/node_mod
› ules/node-fetch-native/dist/index.cjs
› - /home/ali/.npm/_npx/374245/lib/node_modules/@vue-storefront/cli/node_mod
› ules/node-fetch-native/lib/index.cjs
› - /home/ali/.npm/_npx/374245/lib/node_modules/@vue-storefront/cli/dist/dom
› ains/integration/fetchIntegrations.js
› - /home/ali/.npm/_npx/374245/lib/node_modules/@vue-storefront/cli/dist/dom
› ains/integration/index.js
› - /home/ali/.npm/_npx/374245/lib/node_modules/@vue-storefront/cli/dist/com
› mands/generate/store.js
› - /home/ali/.npm/_npx/374245/lib/node_modules/@vue-storefront/cli/node_mod
› ules/@oclif/core/lib/module-loader.js
› - /home/ali/.npm/_npx/374245/lib/node_modules/@vue-storefront/cli/node_mod
› ules/@oclif/core/lib/config/plugin.js
› - /home/ali/.npm/_npx/374245/lib/node_modules/@vue-storefront/cli/node_mod
› ules/@oclif/core/lib/config/config.js
› - /home/ali/.npm/_npx/374245/lib/node_modules/@vue-storefront/cli/node_mod
› ules/@oclif/core/lib/config/index.js
› - /home/ali/.npm/_npx/374245/lib/node_modules/@vue-storefront/cli/node_mod
› ules/@oclif/core/lib/command.js
› - /home/ali/.npm/_npx/374245/lib/node_modules/@vue-storefront/cli/node_mod
› ules/@oclif/core/lib/index.js
› - /home/ali/.npm/_npx/374245/lib/node_modules/@vue-storefront/cli/bin/run
› Code: MODULE_NOT_FOUND

Current behavior

No response

Expected behavior

It should install store and go forward.the

Steps to reproduce

npx @vue-storefront/cli generate store

What version of Vue Storefront are you using?

latest

What version of Node.js are you using?

14.17.0

What browser (and version) are you using?

Chrome

What operating system (and version) are you using?

Ubuntu 18

Relevant log output

No response

Able to fix / change the documentation?

  • Yes
  • No

Code of Conduct

  • I agree to follow this project's Code of Conduct
@thealiraza thealiraza added the bug Bug reports label Nov 19, 2022
@alistaircolling-e2x
Copy link

alistaircolling-e2x commented Mar 13, 2023

I'm having the same issue running node 14.7.0 macOS 10.15.7

@alistaircolling-e2x
Copy link

N.B. tried again using node v16.19.1 and this worked fine

@jorismak
Copy link

I did notice a 'make sure you have at least node 16' on the Storefront page somewhere. Don't know if that's fresh or not :).

@skirianov
Copy link
Contributor

@jorismak that's fresh :)

Also, we need to fix the docs since it gives wrong info. For CLI please use Node.js >=16.13 and <17.

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

No branches or pull requests

4 participants