Create react app specific version problem on windows 10

#1

I am going through one online video course and there the author of the course has specifically mentioned to install the below version of create react app so that things won’t break later on. Here is the screenshot from his course:

However, when I did the same thing in my command prompt, like the following, I got completely different thing:

C:\jack\myfolder>npm -i -g create-react-app@1.5.2

Usage: npm <command>

where <command> is one of:
    access, adduser, audit, bin, bugs, c, cache, ci, cit,
    completion, config, create, ddp, dedupe, deprecate,
    dist-tag, docs, doctor, edit, explore, get, help,
    help-search, hook, i, init, install, install-test, it, link,
    list, ln, login, logout, ls, outdated, owner, pack, ping,
    prefix, profile, prune, publish, rb, rebuild, repo, restart,
    root, run, run-script, s, se, search, set, shrinkwrap, star,
    stars, start, stop, t, team, test, token, tst, un,
    uninstall, unpublish, unstar, up, update, v, version, view,
    whoami

npm <command> -h  quick help on <command>
npm -l            display full usage info
npm help <term>   search for help on <term>
npm help npm      involved overview

Specify configs in the ini-formatted file:
    C:\Users\akhare\.npmrc
or on the command line via: npm <command> --key value
Config info can be viewed via: npm help config

npm@6.4.1 C:\Program Files\nodejs\node_modules\npm

Why am I getting like this?

#2

Compare the 2 lines directly beneath each other…

npm i -g create-react-app@1.5.2
npm -i -g create-react-app@1.5.2

(i is a command and short for install, whereas -g is an option argument and short for --global)

1 Like
#3

Thanks. Didn’t notice that. It worked now. :slight_smile: