# Failure to deploy or run locally with 'file not found' exception

**URL:** <https://forum.serverless.com/t/failure-to-deploy-or-run-locally-with-file-not-found-exception/10950>\
**Category:** Serverless Framework\
**Created:** [March 31, 2020, 2:44pm UTC](https://forum.serverless.com/t/failure-to-deploy-or-run-locally-with-file-not-found-exception/10950 "2020-03-31T14:44:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vincentvanderwalt](https://avatars.discourse-cdn.com/v4/letter/v/eada6e/32.png) [@vincentvanderwalt](https://forum.serverless.com/u/vincentvanderwalt)\
**Post date:** [March 31, 2020, 2:44pm UTC](https://forum.serverless.com/t/failure-to-deploy-or-run-locally-with-file-not-found-exception/10950/1 "2020-03-31T14:44:55Z")

</div>

I’m trying to create a nodejs , typescript based function and deploy it to aws.

trying to execute `serverless invoke local --function hello` I get an exception

```auto
  Error --------------------------------------------------

  Error: ENOENT: no such file or directory, copyfile 'C:\snapshot\serverless\node_modules\@serverless\enterprise-plugin
\sdk-js\dist\index.js' -> 'C:\Dev\projects\serverlessframework\notes-ts\serverless_sdk\index.js'
      at copyFileSync (fs.js:1790:3)
      at Object.copyFileSync (C:\snapshot\serverless\lib\utils\standalone-patch.js:53:5)
      at copyFile (C:\snapshot\serverless\node_modules\@serverless\enterprise-plugin\node_modules\fs-extra\lib\copy-syn
c\copy-sync.js:68:8)
      at onFile (C:\snapshot\serverless\node_modules\@serverless\enterprise-plugin\node_modules\fs-extra\lib\copy-sync\
copy-sync.js:53:25)
      at getStats (C:\snapshot\serverless\node_modules\@serverless\enterprise-plugin\node_modules\fs-extra\lib\copy-syn
c\copy-sync.js:48:44)
      at startCopy (C:\snapshot\serverless\node_modules\@serverless\enterprise-plugin\node_modules\fs-extra\lib\copy-sy
nc\copy-sync.js:38:10)
      at handleFilterAndCopy (C:\snapshot\serverless\node_modules\@serverless\enterprise-plugin\node_modules\fs-extra\l
ib\copy-sync\copy-sync.js:33:10)
      at Object.copySync (C:\snapshot\serverless\node_modules\@serverless\enterprise-plugin\node_modules\fs-extra\lib\c
opy-sync\copy-sync.js:26:10)
      at C:\snapshot\serverless\node_modules\@serverless\enterprise-plugin\lib\wrap.js:183:10
      at Generator.next (<anonymous>)
      at asyncGeneratorStep (C:\snapshot\serverless\node_modules\@serverless\enterprise-plugin\lib\wrap.js:8:103)
      at _next (C:\snapshot\serverless\node_modules\@serverless\enterprise-plugin\lib\wrap.js:10:194)
      at C:\snapshot\serverless\node_modules\@serverless\enterprise-plugin\lib\wrap.js:10:364
      at new Promise (<anonymous>)
      at C:\snapshot\serverless\node_modules\@serverless\enterprise-plugin\lib\wrap.js:10:97
      at wrap (C:\snapshot\serverless\node_modules\@serverless\enterprise-plugin\lib\wrap.js:256:17)
      at ServerlessEnterprisePlugin.<anonymous> (C:\snapshot\serverless\node_modules\@serverless\enterprise-plugin\lib\
plugin.js:444:19)
      at Generator.next (<anonymous>)
      at asyncGeneratorStep (C:\snapshot\serverless\node_modules\@serverless\enterprise-plugin\lib\plugin.js:3:103)
      at _next (C:\snapshot\serverless\node_modules\@serverless\enterprise-plugin\lib\plugin.js:5:194)
      at runMicrotasks (<anonymous>)
      at processTicksAndRejections (internal/process/task_queues.js:93:5)

```

I’ve tried several sample projects but can’t get past the first hurdle.

I’ve also tried this tutorial with no luck, [https://serverless-stack.com/](https://serverless-stack.com/)

I am running my command line as administrator but still no luck

_Your Environment Information ---------------------------_

- 

```
Operating System: win32*

```

- 

```
Node Version: 12.13.1*

```

- 

```
Framework Version: 1.67.0 (standalone)*

```

- 

```
Plugin Version: 3.5.0*

```

- 

```
SDK Version: 2.3.0*

```

- 

```
Components Version: 2.22.3*
```

---

<div class="post-metadata">

**Author:** ![devcoder01](https://avatars.discourse-cdn.com/v4/letter/d/b5e925/32.png) [@devcoder01](https://forum.serverless.com/u/devcoder01)\
**Post date:** [April 14, 2020, 10:12pm UTC](https://forum.serverless.com/t/failure-to-deploy-or-run-locally-with-file-not-found-exception/10950/2 "2020-04-14T22:12:03Z")

</div>

I have the same issue. Was working last week and just stopped. Look forward to a solution.

Error: ENOENT: no such file or directory, copyfile ‘C:\snapshot\serverless\node\_modules@serverless\enterprise-plugin\sdk-py\serverless\_sdk\ __init_\_.py’ -\> ‘C:\dev\serverless-service-check1\serverless\_sdk\__ init_\_.py’

Your Environment Information ---------------------------  
Operating System: win32  
Node Version: 12.13.1  
Framework Version: 1.66.0 (standalone)  
Plugin Version: 3.4.1  
SDK Version: 2.3.0  
Components Version: 2.22.3

---

<div class="post-metadata">

**Author:** ![kennedy](https://avatars.discourse-cdn.com/v4/letter/k/c0e974/32.png) [@kennedy](https://forum.serverless.com/u/kennedy)\
**Post date:** [May 7, 2020, 8:25pm UTC](https://forum.serverless.com/t/failure-to-deploy-or-run-locally-with-file-not-found-exception/10950/3 "2020-05-07T20:25:06Z")

</div>

I am having issues with is as well. I created a ticket on github and referenced this forum post.

Here is the link for those who want to track it: [https://github.com/serverless/serverless/issues/7696](https://github.com/serverless/serverless/issues/7696)
