On my TeamCity build server I am attempting to run the jss build command in one of the build steps, but it fails with the error:

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

I know jss is properly installed because I can manually run the command from the build directory inside a PowerShell window.

1 Answer 1


According to the JSS Documentation DevOps page:

Tip: when running jss CLI commands in an environment where you cannot install global npm packages, you can use npm run jss [command] instead, which shims the CLI command through npm. Note that -- is needed prior to any arguments with npm, e.g. npm run jss deploy app -- --skipBuild

If you structure your command as npm run jss build, it will work assuming you have the necessary prerequisites (node and the JSS CLI).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.