title: serverless deploy Error: Error: Cannot find module './lib/core'
body: <p>I am getting an error on the command serverless deploy and I can't find any documentation on the source of this error. It works on my local machine which means I must have something else installed that makes it work but I cant figure out what.</p>
  <p>I am trying to build on AWS.</p>
  <p>my serverless.yaml:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>service: suqinn-python
  app: suquinn-be
  plugins:
    - '@serverless/enterprise-plugin'
    - serverless-pseudo-parameters
    - serverless-custom-packaging-plugin
    - serverless-python-requirements
  
  
  
  
  package:
    exclude:
      - 'node_modules/**'
  
  provider:
    name: aws
    runtime: python3.8
    profile: ${opt:profile,"AlexisLefebvre"}
    region: ${opt:region,"eu-west-2"}
    stage: ${opt:stage,"dev"}
    environment:
      STAGE: ${self:provider.stage}
      REGION: ${self:provider.region}
      DYNAMODB_SECURITIES_TABLE: ${self:custom.DynamoDBSecuritiesTableName}
    iamRoleStatements:
      - Effect: 'Allow'
        Action:
          - dynamodb:PutItem
          - dynamodb:Query
          - dynamodb:Scan
          - dynamodb:GetItem
          - dynamodb:UpdateItem
          - dynamodb:DeleteItem
        Resource: 
          - arn:aws:dynamodb:${self:provider.region}:#{AWS::AccountId}:table/${self:custom.DynamoDBTradesTableName}
  
      - Effect: 'Allow'
        Action:
          - s3:GetObject
        Resource: 
          - arn:aws:s3:::*
  
  functions:
    create:
      handler: handler.create
      environment:
        STAGE: ${self:provider.stage}
      events:
        - http:
            path: form
            method: post
            cors: true
    get:
      handler: handler.get
      environment:
        STAGE: ${self:provider.stage}
      events:
        - http:
            path: form
            method: get
            cors: true
    delete:
      handler: handler.delete
      environment:
        STAGE: ${self:provider.stage}
      events:
        - http:
            path: form
            method: delete
            cors: true
    
    
  
  custom:
    client: "kkk"
    DynamoDBTradesTableName: ${self:custom.client}-trades-${self:provider.stage}
    s3reportsName: ${self:custom.client}-reports-${self:provider.stage}</code></pre>
  </div>
  </div>
  </p>
  <p>and my buildspec.yaml:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>version: 0.2
  #comment
  phases:
    install:
      runtime-versions:
        nodejs: 10
        python: 3.8
      commands:
        - pip install pyjwt
        - pip install pytz
        - pip install pandas_market_calendars
        - npm install serverless -g
        - npm install serverless-pseudo-parameters
        - npm install serverless-custom-packaging-plugin
        - npm install serverless-python-requirements
        - npm install @serverless/enterprise-plugin
  
    build:
      commands:
  
        - serverless deploy</code></pre>
  </div>
  </div>
  </p>