Not able to run serverless command on CLI

Serverless framework has been successfully installed on my machine but when i am trying to run serverless login or serverless command its giving error.

Error details are as follows :
C:\Users\568920>serverless
‘serverless’ is not recognized as an internal or external command,
operable program or batch file.

Microsoft Windows [Version 10.0.15063]
© 2017 Microsoft Corporation. All rights reserved.

C:\Users\568920>npm install serverless --global
npm WARN deprecated superagent@3.8.3: Please note that v5.0.1+ of superagent removes User-Agent header by default, therefore you may need to add it yourself (e.g. GitHub blocks requests without a User-Agent header). This notice will go away with v5.0.2+ once it is released.
C:\Users\568920\AppData\Roaming\npm\serverless -> C:\Users\568920\AppData\Roaming\npm\node_modules\serverless\bin\serverless.js
C:\Users\568920\AppData\Roaming\npm\slss -> C:\Users\568920\AppData\Roaming\npm\node_modules\serverless\bin\serverless.js
C:\Users\568920\AppData\Roaming\npm\sls -> C:\Users\568920\AppData\Roaming\npm\node_modules\serverless\bin\serverless.js

serverless@1.52.0 postinstall C:\Users\568920\AppData\Roaming\npm\node_modules\serverless
node ./scripts/postinstall.js

±-------------------------------------------------+
| |
| Serverless Framework successfully installed! |
| To start your first project, run “serverless”. |
| |
±-------------------------------------------------+

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.0.7 (node_modules\serverless\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.0.7: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“win32”,“arch”:“x64”})

  • serverless@1.52.0
    updated 2 packages in 58.038s

C:\Users\568920>serverless
‘serverless’ is not recognized as an internal or external command,
operable program or batch file.

C:\Users\568920> serverless login '’ is not recognized as an internal or external command,
operable program or batch file.

C:\Users\568920>serverless login
‘serverless’ is not recognized as an internal or external command,
operable program or batch file.

C:\Users\568920>serverless
‘serverless’ is not recognized as an internal or external command,
operable program or batch file.

Please suggest how to proceed.

I got the resolution… Path variable needs to be set in environment variable

C:\Users<userId>\AppData\Roaming\npm

now it working for me.
Thanks

I was also getting the same issue , but when i tried $npm install -g serverless , its working perfectly fine.

So use $npm install -g serverless instead of $npm install serverless