Shopify/shopify-app-template-node

Incorrect Documentation in README.md

tawanda-profuse opened this issue · 6 comments

Issue summary

The command for installing the shopify-app-template-node using npm is incorrect. This command can be found under the heading that says Installing the template.

The error in the console:

npm error: no such flag -- --template=node

Expected behavior

After running this command, it is expected that all the dependencies will be installed.

Actual behavior

An error is displayed in the console and no dependencies are installed.

Steps to reproduce the problem

  1. Clone this repository
  2. Run the command: npm init @shopify/app@latest -- --template=node

Correction

The command that works is npm init @shopify/app@latest --template=node.

Hi @tawanda-profuse, thank you for opening this issue. Unfortunately I cannot reproduce it. What version of node do you have and what operating system are you using?

What terminal program are you using? I cannot reproduce this with PowerShell, windows 11 and node 18.

Hi @tawanda-profuse, I cannot reproduce this, I have a feeling the error you're facing has to do with your personal setup, maybe you're aliasing npm? The docs clearly state that in order to pass additional arguments to the command, the arguments need to be separated by --.