serverless deploy command not found even after installation

Asked

Viewed 59 times

-2

I installed the serverless via npm, but it says that the serverless and serverless deploy command do not exist, not even serverles -v, as if it had not installed via npm.

1 answer

1


You installed the serverless using -g?

npm install -g serverless

If yes:

Make sure Node installation is in your $PATH.

echo $PATH

If not:

If you installed serverless directly in your Python project, try running:

./node_modules/.bin/serverless -v

  • Thanks friend, the problem was that the Node was not in the $PATH.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.