Skip to content

Failed to run yarn install on codegen csharp-httpclient #760

@LoukaOctave

Description

@LoukaOctave

Describe the bug

# This file contains the result of Yarn building a package (postman-code-generators@npm:1.12.0)
# Script name: postinstall

Detected package manager: yarn
Running pre-package script
Run successful languages.js saved in lib/assets
csharp-httpclient: yarn install --no-audit --production
Failed to run yarn install on codegen csharp-httpclient, here is the error:
csharp-restsharp: yarn install --no-audit --production
Failed to run yarn install on codegen csharp-restsharp, here is the error:
./node_modules/postman-code-generators/node_modules/async/dist/async.js:324
            if (fn === null) throw new Error("Callback was already called.");
                                   ^

Error: Callback was already called.
    at ./node_modules/postman-code-generators/node_modules/async/dist/async.js:324:36
    at ./node_modules/postman-code-generators/node_modules/async/dist/async.js:3646:17
    at ./node_modules/postman-code-generators/npm/deepinstall.js:59:16
    at Array.forEach (<anonymous>)
    at ./node_modules/postman-code-generators/npm/deepinstall.js:48:14
    at ./node_modules/postman-code-generators/node_modules/async/dist/async.js:3641:28
    at replenish (./node_modules/postman-code-generators/node_modules/async/dist/async.js:446:21)
    at iterateeCallback (./node_modules/postman-code-generators/node_modules/async/dist/async.js:430:21)
    at ./node_modules/postman-code-generators/node_modules/async/dist/async.js:327:20
    at ./node_modules/postman-code-generators/node_modules/async/dist/async.js:3646:17

Node.js v22.2.0

To Reproduce
Steps to reproduce the behavior:

  1. Create the following package.json file
{
  "name": ".",
  "dependencies": {
    "postman-code-generators": "^1.12.0"
  },
  "packageManager": "yarn@4.3.1",
  "engines": {
    "node": ">=18.0"
  }
}
  1. Run yarn install

OR

  1. Run yarn add postman-code-generators@1.12.0

Expected code snippet and corresponding request
N/A

Screenshots
N/A

Additional context
N/A

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions