Skip to content

engine.io package installation with yarn causes yarn.lock to not be created #516

Closed
@jharris4

Description

@jharris4

Note: for support questions, please use one of these channels: stackoverflow or slack

You want to:

  • report a bug
  • request a feature

Current behaviour

When installing engine.io 3.1.0 with yarn, the yarn.lock file is not created despite yarn saying it was.

Steps to reproduce (if the current behaviour is a bug)

Create a package.json with the following content (only dependencies are important):

{
  "name": "yarn-lock-bug",
  "version": "1.0.0",
  "description": "repro bug with yarn not creating lock file",
  "author": "jharris4",
  "license": "MIT",
  "devDependencies": {
    "engine.io": "^3.1.0"
  }
}

then run yarn install

Expected behaviour

yarn.lock file should be properly created. Yarn says it was, but the yarn.lock file does not actually exist.

Setup

  • OS: MacOS 10.12.5
  • browser: N/A
  • engine.io version: 3.1.0

Other information (e.g. stacktraces, related issues, suggestions how to fix)

This is consistently reproducible with Node 8.x, Yarn 0.24.6 and MacOS 10.12.5.

Note that the bug only reliably happens on first install (rm -rf node_modules and rm yarn.lock)

This bug was originally filed on yarn: yarnpkg/yarn#3555

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