Skip to content

Error: yarn install --frozen-lockfile --non-interactive failed with code 1 #1653

@juztinlazaro

Description

@juztinlazaro

any fix on this? also having an issue in

issue:

× Stack *****-serverless-sit failed to deploy (6s)
Environment: linux, node 18.12.1, framework 3.36.0 (local), plugin 7.1.0, SDK 4.4.0
Credentials: Local, environment variables
Docs:        docs.serverless.com
Support:     forum.serverless.com
Bugs:        github.com/serverless/serverless/issues

Error:
Error: yarn install --frozen-lockfile --non-interactive failed with code 1
    at ChildProcess.<anonymous> (/home/circleci/project/node_modules/serverless-webpack/lib/utils.js:92:16)
    at ChildProcess.emit (node:events:513:28)
    at ChildProcess.emit (node:domain:489:12)
    at maybeClose (node:internal/child_process:1091:16)
    at ChildProcess._handle.onexit (node:internal/child_process:302:5)

2 deprecations found: run 'serverless doctor' for more details

custom

webpack:
  webpackConfig: serverless_v3/webpack.config.js
  includeModules:
    forceInclude:
      - lodash
      - moment
      - es6-promisify
      - axios
      - https
      - axios-retry
      - error-stack-parser
      - stackframe
      - stack-generator
      - stacktrace-gps
      - '@loanmarket/logger-core'
      - '@loanmarket/logger-cloud-watch'
  packager: 'yarn'

webpackconfig

const path = require('path');
const slsw = require('serverless-webpack');
const nodeExternals = require('webpack-node-externals');

module.exports = {
  entry: slsw.lib.entries,
  target: 'node',
  mode: slsw.lib.webpack.isLocal ? 'development' : 'production',
  resolve: {
    alias: {
      lib: path.resolve(__dirname, 'lib/'),
      services: path.resolve(__dirname, 'services/'),
      builders: path.resolve(__dirname, 'builders/'),
      constants: path.resolve(__dirname, 'constants/'),
      config: path.resolve(__dirname, 'config/'),
      shared: path.resolve(__dirname, '../shared/'),
    },
  },
  optimization: {
    // We no not want to minimize our code.
    minimize: false,
  },
  performance: {
    // Turn off size warnings for entry points
    hints: false,
  },
  devtool: 'nosources-source-map',
  externals: [nodeExternals()],
  module: {
    rules: [
      {
        test: /\.js$/,
        exclude: /node_modules/,
        use: [
          {
            loader: 'babel-loader',
          },
        ],
      },
    ],
  },
  output: {
    libraryTarget: 'commonjs2',
    path: path.join(__dirname, '.webpack'),
    filename: '[name].js',
    sourceMapFilename: '[file].map',
  },
};

Serverless-Webpack Version you're using: "serverless-webpack": "5.3.0",
Webpack version you're using: "webpack": "5.81.0",
Serverless Framework Version you're using: "serverless": "3.36.0",

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions