Skip to content

Incorrect timestamps for files in node_modules #5577

@thomaswelton

Description

@thomaswelton

Do you want to request a feature or report a bug?

Bug 🐛

What is the current behavior?
Timestamps for some files are being set in the 1970s

If the current behavior is a bug, please provide the steps to reproduce.

Installing react also includes lodash-es and a dependency. The files within the lodash-es directory are saved as having a timestamp in the 1970s

As a result when trying to create a zip file of the node_modules directory I get this error
ZIP does not support timestamps before 1980

This does not occur when I install via NPM
Here is my package.json

{
  "version": "1.0.0",
  "main": "index.js",
  "license": "MIT",
  "private": true,
  "dependencies": {
    "aws-serverless-express": "^3.1.3",
    "babel-loader": "^7.1.3",
    "bootstrap": "^4.0.0",
    "express": "^4.16.2",
    "history": "^4.7.2",
    "isomorphic-fetch": "^2.2.1",
    "json-api-normalizer": "^0.4.10",
    "loadable-components": "^1.1.1",
    "lodash-es": "4.*",
    "lodash.merge": "^4.6.1",
    "react": "^16.2.0",
    "react-dom": "^16.2.0",
    "react-helmet": "^5.2.0",
    "react-redux": "^5.0.7",
    "react-router": "^4.2.0",
    "react-router-dom": "^4.2.2",
    "react-router-redux": "^5.0.0-alpha.9",
    "redux": "^3.7.2",
    "redux-object": "^0.5.5",
    "redux-saga": "^0.16.0",
    "universal-webpack": "^0.6.2",
    "uuid": "^3.2.1"
  },
  "devDependencies": {
    "babel-cli": "^6.26.0",
    "babel-core": "^6.26.0",
    "babel-minify": "^0.3.0",
    "babel-plugin-transform-runtime": "^6.23.0",
    "babel-polyfill": "^6.26.0",
    "babel-preset-es2015": "^6.24.1",
    "babel-preset-flow": "^6.23.0",
    "babel-preset-react": "^6.24.1",
    "babel-preset-stage-2": "^6.24.1",
    "babili-webpack-plugin": "^0.1.2",
    "chai": "^4.1.2",
    "css-loader": "^0.28.11",
    "file-loader": "^1.1.11",
    "flow-bin": "^0.66.0",
    "jsdom": "^11.6.2",
    "mini-css-extract-plugin": "^0.2.0",
    "mocha": "^5.0.1",
    "node-sass": "^4.7.2",
    "nodemon": "^1.17.1",
    "prop-types": "^15.6.1",
    "redux-devtools-extension": "^2.13.2",
    "sass-loader": "^6.0.7",
    "sinon": "^4.4.8",
    "sinon-chai": "^2.14.0",
    "style-loader": "^0.20.3",
    "webpack": "^4.1.1",
    "webpack-bundle-analyzer": "^2.11.1",
    "webpack-cli": "^2.0.10"
  }
}

What is the expected behavior?
The loads-es directory has files created in 2018

Please mention your node.js, yarn and operating system version.
Node.js: 8.10.0
Yarn: 1.5.1
OS: 10.13.3

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions