vuestorefront / vue-storefront

Alokai is a Frontend as a Service solution that simplifies composable commerce. It connects all the technologies needed to build and deploy fast & scalable ecommerce frontends. It guides merchants to deliver exceptional customer experiences quickly and easily.
https://www.alokai.com
MIT License
10.59k stars 2.08k forks source link

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

Open thealiraza opened 1 year ago

thealiraza commented 1 year ago

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?

Code of Conduct

alistaircolling-e2x commented 1 year ago

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

alistaircolling-e2x commented 1 year ago

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

jorismak commented 1 year ago

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 commented 1 year ago

@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.