Open thealiraza opened 1 year ago
I'm having the same issue running node 14.7.0
macOS 10.15.7
N.B. tried again using node v16.19.1
and this worked fine
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 :).
@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.
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