Tencent / cloudbase-framework

腾讯云开发云原生一体化部署工具 🚀 CloudBase Framework:一键部署,不限框架语言,云端一体化开发,基于Serverless 架构。A front-end and back-end integrated deployment tool. One-click deploy to serverless architecture. https://docs.cloudbase.net/framework/index

Home Page:https://cloudbase.net/framework.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nets 部署失败

guotingchao opened this issue · comments

Bug 描述
Describe the bug

请简单清晰地描述您遇到的bug。
nest应用部署失败

重现步骤
yarn run deploy

错误日志

Wed Mar 31 2021 16:19:47 GMT+0800 (China Standard Time) 1.4 CloudBase Framework::info Version �[32mv1.7.1�[39m
Wed Mar 31 2021 16:19:47 GMT+0800 (China Standard Time) 1.4 CloudBase Framework::info Github: �[1m�[4m�[36mhttps://github.com/Tencent/cloudbase-framework�[39m�[24m�[22m

Wed Mar 31 2021 16:19:47 GMT+0800 (China Standard Time) 1.4 CloudBase Framework::info EnvId �[32mtt-4g6r4x8w9abd506f�[39m
Wed Mar 31 2021 16:19:47 GMT+0800 (China Standard Time) 1.5 CloudBase Framework::debug 本地构建,本地存在配置文件 {
  functionRoot: './functions',
  functions: [],
  version: '2.0',
  envId: 'tt-4g6r4x8w9abd506f',
  '$schema': 'https://framework-1258016615.tcloudbaseapp.com/schema/latest.json',
  framework: {
    name: 'tt',
    plugins: {
      node: {
        use: '@cloudbase/framework-plugin-node',
        inputs: {
          name: 'tt',
          path: '/tt',
          entry: 'app.js',
          buildCommand: 'npm install --prefer-offline --no-audit --progress=false && npm run build',
          functionOptions: { timeout: 5, envVariables: { NODE_ENV: 'production' } }
        }
      }
    }
  },
  region: 'ap-guangzhou'
} 
Wed Mar 31 2021 16:19:48 GMT+0800 (China Standard Time) 2.0 CloudBase Framework::debug 远程存在同名项目 'tt' 
Wed Mar 31 2021 16:19:48 GMT+0800 (China Standard Time) 2.0 CloudBase Framework::debug 项目配置信息 'rcConfig' {
  functionRoot: './functions',
  functions: [],
  version: '2.0',
  envId: 'tt-4g6r4x8w9abd506f',
  '$schema': 'https://framework-1258016615.tcloudbaseapp.com/schema/latest.json',
  framework: {
    name: 'tt',
    plugins: {
      node: {
        use: '@cloudbase/framework-plugin-node',
        inputs: {
          name: 'tt',
          path: '/tt',
          entry: 'app.js',
          buildCommand: 'npm install --prefer-offline --no-audit --progress=false && npm run build',
          functionOptions: { timeout: 5, envVariables: { NODE_ENV: 'production' } }
        }
      }
    }
  },
  region: 'ap-guangzhou'
} 'extraData' {
  repo: {
    Type: 'local',
    Url: '',
    Name: 'tt',
    WorkDir: '',
    RawCode: '',
    Headers: {}
  },
  tags: [],
  environment: {},
  network: {},
  addons: {}
} 'projectName' 'tt' 
Wed Mar 31 2021 16:19:48 GMT+0800 (China Standard Time) 2.0 CloudBase Framework::debug RC 配置文件变更 false {
  functionRoot: './functions',
  functions: [],
  version: '2.0',
  envId: 'tt-4g6r4x8w9abd506f',
  '$schema': 'https://framework-1258016615.tcloudbaseapp.com/schema/latest.json',
  framework: {
    name: 'tt',
    plugins: {
      node: {
        use: '@cloudbase/framework-plugin-node',
        inputs: {
          name: 'tt',
          path: '/tt',
          entry: 'app.js',
          buildCommand: 'npm install --prefer-offline --no-audit --progress=false && npm run build',
          functionOptions: { timeout: 5, envVariables: { NODE_ENV: 'production' } }
        }
      }
    }
  },
  region: 'ap-guangzhou'
} 
Wed Mar 31 2021 16:19:48 GMT+0800 (China Standard Time) 2.0 CloudBase Framework::debug Framework 配置文件变更 false {
  name: 'tt',
  plugins: {
    node: {
      use: '@cloudbase/framework-plugin-node',
      inputs: {
        name: 'tt',
        path: '/tt',
        entry: 'app.js',
        buildCommand: 'npm install --prefer-offline --no-audit --progress=false && npm run build',
        functionOptions: { timeout: 5, envVariables: { NODE_ENV: 'production' } }
      }
    }
  }
} 
Wed Mar 31 2021 16:19:48 GMT+0800 (China Standard Time) 2.0 CloudBase Framework::info Validate config file success.
Wed Mar 31 2021 16:19:48 GMT+0800 (China Standard Time) 2.0 CloudBase Framework::info AppName �[32mtt�[39m
Wed Mar 31 2021 16:19:48 GMT+0800 (China Standard Time) 2.0 CloudBase Framework::debug appConfig {
  name: 'tt',
  plugins: {
    node: {
      use: '@cloudbase/framework-plugin-node',
      inputs: {
        name: 'tt',
        path: '/tt',
        entry: 'app.js',
        buildCommand: 'npm install --prefer-offline --no-audit --progress=false && npm run build',
        functionOptions: { timeout: 5, envVariables: { NODE_ENV: 'production' } }
      }
    }
  },
  repo: {
    Type: 'local',
    Url: '',
    Name: 'tt',
    WorkDir: '',
    RawCode: '',
    Headers: {}
  },
  tags: [],
  environment: {},
  network: {},
  addons: {}
} 
Wed Mar 31 2021 16:19:48 GMT+0800 (China Standard Time) 2.2 CloudBase Framework::info 📦 install plugins
Wed Mar 31 2021 16:19:48 GMT+0800 (China Standard Time) 2.2 CloudBase Framework::debug initHooks {} 
Wed Mar 31 2021 16:19:48 GMT+0800 (China Standard Time) 2.2 CloudBase Framework::debug resolve plugin @cloudbase/framework-plugin-node@1.7.1: use 0.00 s, mismatch:false, resolved version:1.7.1
Wed Mar 31 2021 16:19:48 GMT+0800 (China Standard Time) 2.2 CloudBase Framework::debug deploy '' '' 
Wed Mar 31 2021 16:19:48 GMT+0800 (China Standard Time) 2.2 CloudBase Framework::info callHooks 'preDeploy' 
Wed Mar 31 2021 16:19:49 GMT+0800 (China Standard Time) 2.8 CloudBase Framework::info 🔧 init: node...
Wed Mar 31 2021 16:19:49 GMT+0800 (China Standard Time) 2.8 CloudBase Framework::debug NodePlugin: init {
  runtime: 'Nodejs10.15',
  entry: 'app.js',
  path: '/tt',
  name: 'tt',
  projectPath: '.',
  platform: 'function',
  wrapExpress: false,
  buildCommand: 'npm install --prefer-offline --no-audit --progress=false && npm run build',
  functionOptions: { timeout: 5, envVariables: { NODE_ENV: 'production' } }
} 
Wed Mar 31 2021 16:19:49 GMT+0800 (China Standard Time) 2.8 CloudBase Framework::info 🔨 build: node...
Wed Mar 31 2021 16:19:49 GMT+0800 (China Standard Time) 2.8 CloudBase Framework::debug NodePlugin: build {
  runtime: 'Nodejs10.15',
  entry: 'app.js',
  path: '/tt',
  name: 'tt',
  projectPath: '.',
  platform: 'function',
  wrapExpress: false,
  buildCommand: 'npm install --prefer-offline --no-audit --progress=false && npm run build',
  functionOptions: { timeout: 5, envVariables: { NODE_ENV: 'production' } }
} 
Wed Mar 31 2021 16:19:57 GMT+0800 (China Standard Time) 11.4 CloudBase Framework::error  ENOENT: no such file or directory, stat '/Users/guotingchao/Developer/Coding/tt-cloud/node_modules/windows-release/node_modules/cross-spawn/node_modules/.bin/node-which'
Wed Mar 31 2021 16:19:57 GMT+0800 (China Standard Time) 11.4 CloudBase Framework::info 部署日志: '/Users/guotingchao/cloudbase-framework/logs/2021-03-31_16-19-46.log'