Node.js 纱线工作区:enoint:部署期间没有此类文件或目录节点\u modules/.bin/jest
由于转向使用纱线工作区,我在尝试部署时遇到以下错误 serverless.yml文件位于graphql包的根目录中,即so/packages/graphql Jest安装到根节点\u modules文件夹,然后符号链接到根节点:node\u modules/.bin/Jest->…/…/…/…/…/…/node\u modules/Jest/bin/JestNode.js 纱线工作区:enoint:部署期间没有此类文件或目录节点\u modules/.bin/jest,node.js,amazon-web-services,aws-lambda,serverless-framework,Node.js,Amazon Web Services,Aws Lambda,Serverless Framework,由于转向使用纱线工作区,我在尝试部署时遇到以下错误 serverless.yml文件位于graphql包的根目录中,即so/packages/graphql Jest安装到根节点\u modules文件夹,然后符号链接到根节点:node\u modules/.bin/Jest->…/…/…/…/…/…/node\u modules/Jest/bin/Jest Serverless: DOTENV: Loading environment variables from .env.developme
Serverless: DOTENV: Loading environment variables from .env.development:
Serverless: - PORT
Serverless: - DB_HOST
Serverless: - DB_USER
Serverless: - DB_PASSWORD
Serverless: - DB_NAME
Serverless: Cleaning dependency symlinks
Serverless: Creating dependency symlinks
Serverless: Compiling with Typescript...
Serverless: Using local tsconfig.json
Serverless: Typescript compiled.
Serverless: Packaging service...
Serverless: Excluding development dependencies...
Error --------------------------------------------------
Error: ENOENT: no such file or directory, open '<redacted>packages/graphql/.build/node_modules/.bin/jest'
at Package.getFileContent (<redacted root>/node_modules/serverless/lib/plugins/package/lib/zipService.js:134:15)
at Package.getFileContentAndStat (<redacted root>node_modules/serverless/lib/plugins/package/lib/zipService.js:123:12)
For debugging logs, run again after setting the "SLS_DEBUG=*" environment variable.
Get Support --------------------------------------------
Docs: docs.serverless.com
Bugs: github.com/serverless/serverless/issues
Issues: forum.serverless.com
Your Environment Information ---------------------------
Operating System: darwin
Node Version: 10.15.3
Framework Version: 1.54.0
Plugin Version: 3.1.2
SDK Version: 2.1.2
Components Core Version: 1.1.1
Components CLI Version: 1.2.3
Serverless:DOTENV:从.env.development加载环境变量:
无服务器:-端口
无服务器:-DB\u主机
无服务器:-DB\u用户
无服务器:-DB\u密码
无服务器:-DB\u名称
无服务器:清理依赖项符号链接
无服务器:创建依赖项符号链接
无服务器:正在使用Typescript编译。。。
无服务器:使用本地tsconfig.json
无服务器:已编译类型脚本。
无服务器:打包服务。。。
无服务器:排除开发依赖项。。。
错误--------------------------------------------------
错误:enoint:没有这样的文件或目录,请打开“packages/graphql/.build/node\u modules/.bin/jest”
在Package.getFileContent(/node_modules/serverless/lib/plugins/Package/lib/zipService.js:134:15)
在Package.getFileContentAndStat(node_modules/serverless/lib/plugins/Package/lib/zipService.js:123:12)
对于调试日志,请在设置“SLS_DEBUG=*”环境变量后再次运行。
获得支持--------------------------------------------
文档:Docs.serverless.com
bug:github.com/serverless/serverless/issues
问题:forum.serverless.com
您的环境信息---------------------------
操作系统:达尔文
节点版本:10.15.3
框架版本:1.54.0
插件版本:3.1.2
SDK版本:2.1.2
组件核心版本:1.1.1
组件CLI版本:1.2.3
你知道为什么会这样吗