For anyone having trouble with the installation of the Storefront3_client in Django part 3, here is what worked for me.
If you do not have Node.js installed, close VS Code before installing. Also be sure the PATH variables are set. Google this if needed.
In the Storefront3_client, edit the package.json file and make the following changes:
- Remove:
"main": "index.js", - Remove version number from axios:
"axios": "^0.23.0"→"axios": "*" - Remove version number from parcel:
"parcel": "^1.12.5"→"parcel": "*"
From package-lock.json:
Edit this:
"regenerator-runtime": {
"version": "0.13.9",
"resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz",
"integrity": "sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA==",
"dev": true
},
To this (you basically rename “regenerator-runtime” to "regenerator):
"regenerator": {
"version": "0.13.9",
"resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz",
"integrity": "sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA==",
"dev": true
},
From index.js:
Edit the import from this:
import 'regenerator-runtime/runtime';
To this:
import 'regenerator/runtime';
Now you install and run the app:
npm installnpm start