# Sls deploy cmd getting failed anyone noticed this issue

**URL:** <https://forum.serverless.com/t/sls-deploy-cmd-getting-failed-anyone-noticed-this-issue/15037>\
**Category:** Serverless Framework\
**Tags:** aws, lambda, cloudformation, api-gateway\
**Created:** [May 18, 2021, 12:55pm UTC](https://forum.serverless.com/t/sls-deploy-cmd-getting-failed-anyone-noticed-this-issue/15037 "2021-05-18T12:55:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sundar\_SLS\_Dev](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@Sundar\_SLS\_Dev](https://forum.serverless.com/u/Sundar_SLS_Dev)\
**Post date:** [May 18, 2021, 12:55pm UTC](https://forum.serverless.com/t/sls-deploy-cmd-getting-failed-anyone-noticed-this-issue/15037/1 "2021-05-18T12:55:13Z")

</div>

Server less Framework : version 2  
Node Version :14  
OS : Windows 10

internal/modules/cjs/loader.js:888  
throw err;  
^

Error: Cannot find module ‘C:\Users\AppData\Roaming\npm\node\_modules\serverless\bin\serverless.js’  
←[90m at Function.Module.\_resolveFilename (internal/modules/cjs/loader.js:885:15)←[39m  
←[90m at Function.Module.\_load (internal/modules/cjs/loader.js:730:27)←[39m  
←[90m at Function.executeUserEntryPoint [as runMain] (internal/modules/run\_main.js:72:12)←[39m  
←[90m at internal/main/run\_main\_module.js:17:47←[39m {  
code: ←[32m’MODULE\_NOT\_FOUND’←[39m,  
requireStack: []  
}

---

<div class="post-metadata">

**Author:** ![Sundar\_SLS\_Dev](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@Sundar\_SLS\_Dev](https://forum.serverless.com/u/Sundar_SLS_Dev)\
**Post date:** [May 21, 2021, 3:50pm UTC](https://forum.serverless.com/t/sls-deploy-cmd-getting-failed-anyone-noticed-this-issue/15037/2 "2021-05-21T15:50:41Z")

</div>

I have fixed sls deploy (serverless deploy ) Issue

Issue:

internal/modules/cjs/loader.js:888  
throw err;  
^

Error: Cannot find module ‘C:\Users\AppData\Roaming\npm\node\_modules\serverless\bin\serverless.js’  
←[90m at Function.Module.\_resolveFilename (internal/modules/cjs/loader.js:885:15)←[39m  
←[90m at Function.Module.\_load (internal/modules/cjs/loader.js:730:27)←[39m  
←[90m at Function.executeUserEntryPoint [as runMain] (internal/modules/run\_main.js:72:12)←[39m  
←[90m at internal/main/run\_main\_module.js:17:47←[39m {  
code: ←[32m’MODULE\_NOT\_FOUND’←[39m,  
requireStack: []  
}

=========================================================================  
Windows Operating System:

Solution:

Step 1 : Go to file explorer.  
Step 2 : Find the top file explorer 4th option (View).  
Step 3 : Click the View option and Tick the Hidden items ☑  
Step 4: Go to this file path ( C:\Users"your user name"\AppData\Roaming\npm).  
Step 5. Find these files given below  
\* serverless  
\* serverless  
\* serverless  
\* sls  
\* sls  
\* sls  
Step 6 : Delete these above 6 files (file types: cmd, powershell, document,etc,)  
Step 7 : then install freshly serverless framework ( npm install -g serverless )  
Step 8 : Successfully fixed you’re issue.

========================================================================  
If you have any doubt feel free to ping me. I’m here to help you… 🤝

Happy Coding…!

---

<div class="post-metadata">

**Author:** ![jackyjoy123](https://avatars.discourse-cdn.com/v4/letter/j/d6d6ee/32.png) [@jackyjoy123](https://forum.serverless.com/u/jackyjoy123)\
**Post date:** [March 21, 2022, 11:18am UTC](https://forum.serverless.com/t/sls-deploy-cmd-getting-failed-anyone-noticed-this-issue/15037/3 "2022-03-21T11:18:28Z")

</div>

> [@Sundar\_SLS\_Dev](#):
>
> I have fixed sls deploy (serverless deploy ) Issue
> 
> Issue:
> 
> internal/modules/cjs/loader.js:888  
> throw err;  
> ^
> 
> Error: Cannot find module ‘C:\Users\AppData\Roaming\npm\node\_modules\serverless\bin\serverless.js’  
> ←[90m at Function.Module.\_resolveFilename (internal/modules/cjs/loader.js:885:15)←[39m  
> ←[90m at Function.Module.\_load (internal/modules/cjs/loader.js:730:27)←[39m  
> ←[90m at Function.executeUserEntryPoint [as runMain] (internal/modules/run\_main.js:72:12)←[39m  
> ←[90m at internal/main/run\_main\_module.js:17:47←[39m {  
> code: ←[32m’MODULE\_NOT\_FOUND’←[39m,  
> requireStack:   
> }
> 
> =========================================================================  
> Windows Operating System:
> 
> Solution:
> 
> Step 1 : Go to file explorer.  
> Step 2 : Find the top file explorer 4th option (View).  
> Step 3 : Click the View option and Tick the Hidden items ☑  
> Step 4: Go to this file path ( C:\Users"your user name"\AppData\Roaming\npm).  
> Step 5. Find these files given below
> 
> - serverless
> - serverless
> - serverless
> - sls
> - sls
> - sls  
> Step 6 : Delete these above 6 files (file types: cmd, powershell, document,etc,)  
> Step 7 : then install freshly serverless framework ( npm install -g serverless )  
> Step 8 : Successfully fixed you’re issue.
> 
> ========================================================================  
> If you have any doubt feel free to ping me. I’m here to help you… 🤝
> 
> Happy Coding…!

thanks for the awesome information.
