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:

2. Install node_module and run on localhost

  1. Extract the Ciseco_Hydrogen.zip file.

  2. Find the Cisec_Hydrogen folder, this is the project folder and it contains the Package.json file

  3. Open the Terminal, write a cd and space then drag the folder into the Terminal, and press ENTER.

  4. Write npm install, press enter and wait for the system to finish installing all the plugins.

  5. 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" command

  6. Once the installation is completed successfully without errors you can run the template in the npm run dev

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