Serverless is just a NPM module. If you can do an
npm install serverless you can use it.
You probably won't be able to do this on a machine that only has system NodeJs installed (or rather, it would require you to have/use
root permissions, which is not a good idea). Ideally you would have a local version of
node installed, and be able to install you dependent modules (like
serverless) locally to your build and execute it (i.e. so that the specific version you deployed with is stored as part of your build artefacts).