Skip to content

Challenge 1 instructions inconsistent/npm create command incorrect #13

Description

@TimothyAllenIEM

Hi @simpulton!
For Challenge 01:

  • there are inconsistent instructions, and
  • the npm create vite@latest . -- --template react-ts command is incorrect.

Inconsistent Instructions

README.md says:

Start Your First Challenge

cd challenges/01-project-setup/start
npm install
npm run dev

Open the README.md in that challenge directory and follow the instructions.


But challenges/01-project-setup/README.md says to start with an empty directory:

Starting Snapshot

An empty directory. You will scaffold the project from scratch.

The Challenge

Step 1 — Scaffold the Project

Use Vite to create a new React + TypeScript project:

npm create vite@latest . -- --template react-ts
npm install

Incorrect npm create command

Issuing the npm create vite@latest . -- --template react-ts command gets this result:

$ npm create vite@latest . -- --template react-ts
npm warn "react-ts" is being parsed as a normal command line argument.
npm warn Unknown cli config "--template". This will stop working in the next major version of npm.

So npm ignores the --template react-ts flag and the user ends up having to specify react and typescript anyway. npm create vite@latest . could be less misleading.

npm version

This result happens with npm -v 11.6.2, 11.10.1, and 11.11.0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions