Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'jss' is not recognized as an internal or external command

Tags:

jss

sitecore

I am new in Sitecore JSS. While running the following command using CMD:

npm install -g @sitecore-jss/sitecore-jss-cli

I got the following result:

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules@sitecore-jss\sitecore-jss-cli\node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

  • @sitecore-jss/[email protected] updated 1 package in 21.068s

After that I wanted to check that JSS has been installed successfully, so I ran the following CMD command:

jss --help

but the result was:

'jss' is not recognized as an internal or external command, operable program or batch file.

What am I missing?

like image 217
Menna Ramadan Avatar asked Sep 19 '25 13:09

Menna Ramadan


1 Answers

Check your environment path variable.

Default the npm location on Windows is C:\Users{user}\AppData\Roaming\npm

There you found a jss.cmd and the node_modules\@sitecore-jss folder.

To fix the "'jss' is not recognized as an internal or external command, operable program or batch file." error add the npm location to your path or shortly %AppData%\npm

To add somethings to the path go to control panel -> System and Security -> System -> Advanced System Settings then environment variables.

if you cant found the npm location try

npm config get prefix

like image 86
Jan Bluemink Avatar answered Sep 23 '25 07:09

Jan Bluemink