Skip to content
This repository was archived by the owner on Aug 11, 2022. It is now read-only.
This repository was archived by the owner on Aug 11, 2022. It is now read-only.

npm 5.7.1 pack/publish setting timestamp to epoch #19968

@davidlehn

Description

@davidlehn

I'm opening this issue because:

  • npm is producing an incorrect install.

What's going wrong?

How can the CLI team reproduce the problem?

  • Pick a project, any project:
  • npm pack
  • tar ztvf xxx-x.y.z.tgz
-rw-rw-r-- 0/0            3487 1969-12-31 19:00 package/package.json
-rw-rw-r-- 0/0            4801 1969-12-31 19:00 package/CHANGELOG.md
...

Timestamps for all files are like new Date(0) with display adjusted for my timezone.

supporting information:

  • npm -v prints: 5.7.1
  • node -v prints: v8.9.4
  • npm config get registry prints: https://registry.npmjs.org/
  • Windows, OS X/macOS, or Linux?: Linux (Debian latest)

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