0

I am installing nodeJS v10 in Windows 10 Pro, After downloading the installer and install, I can run npm and npx to install the node modules but the installed global command cannot be found. I also try to use back npm install -g, but the error stays the same. Saying react-create-app, I can see it is being installed in the specified directory, but it always report command not found.

Command not found

enter image description here

npm config get prefix

enter image description here

Actual directory

enter image description here enter image description here

Environment variable settings

User Variables

enter image description here

System Variables

enter image description here

As the environment variable seems setting up correctly, it is so weird for not finding the command. Any help would be appreciated, thank you very much

user2361494
  • 141
  • 4
  • 9
  • Possible duplicate of [create-react-app, installation error ("command not found")](https://stackoverflow.com/questions/38751830/create-react-app-installation-error-command-not-found) – Jay Feb 15 '19 at 02:13
  • I do think It appears to be the problem of environment variable set up, but I can't figure out where...Weird, the env var seems okay, and I can also see the path when I print `$PATH` in the terminal – user2361494 Feb 15 '19 at 02:21
  • 2 weeks and I still can't find any clues why global command is not found. The possible duplicated question is not my case as I can confirm the PATH environment includes the node modules installation directory. The only suspect is the path which contains spaces ('Jacky Lam') – user2361494 Feb 26 '19 at 16:15

0 Answers0