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
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/
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*