Step 4. Install node_module and run on localhost
Install node_module
1. Requirements
The project is built by the Hydrogen demo store, so development and construction will follow their guidelines, please check more carefully here - https://hydrogen.shopify.dev/
System Requirements:
Node.js 18.17 or later.
macOS, Windows (including WSL), and Linux are supported.
You have entered the required environment variables correctly.
2. Install node_module and run on localhost
Extract the Ciseco_Hydrogen.zip file.
Find the Cisec_Hydrogen folder, this is the project folder and it contains the Package.json file
Open the Terminal, write a
cd
and space then drag the folder into the Terminal, and press ENTER.Write
npm install
, press enter and wait for the system to finish installing all the plugins.If you get this error "npm error command sh -c git config core.hooksPath hooks", you need to initialize Git repository by running the
"git init"
command before running the"npm install"
commandOnce the installation is completed successfully without errors you can run the template in the
npm run dev
Open the browser in the next URL:
http://localhost:3000/
Alternate package managers
If you're using a package manager other than npm, such as Yarn or pnpm, note the following:
Hydrogen and Oxygen use npm by default. Shopify canβt guarantee compatibility with other package managers.
The Oxygen deployment workflow file uses npm by default, and assumes the presence of a
package-lock.json
file. You can edit the workflow file to use your preferred package manager. In particular, check that the steps to install dependencies, cache modules, and build your app are updated to use the correct commands.
Last updated