Title: npm5 beta 56: npm pack changes timestamps to 01/01/1970 on Windows 7 · Issue #16734 · npm/npm · GitHub
Open Graph Title: npm5 beta 56: npm pack changes timestamps to 01/01/1970 on Windows 7 · Issue #16734 · npm/npm
X Title: npm5 beta 56: npm pack changes timestamps to 01/01/1970 on Windows 7 · Issue #16734 · npm/npm
Description: I'm opening this issue because: npm is doing something I don't understand. What's going wrong? npm pack on Windows seems to be resetting timestamps to 01/01/1970, which breaks several unzipping tools one zipping tool. How can the CLI tea...
Open Graph Description: I'm opening this issue because: npm is doing something I don't understand. What's going wrong? npm pack on Windows seems to be resetting timestamps to 01/01/1970, which breaks several unzipping too...
X Description: I'm opening this issue because: npm is doing something I don't understand. What's going wrong? npm pack on Windows seems to be resetting timestamps to 01/01/1970, which breaks several u...
Opengraph URL: https://github.com/npm/npm/issues/16734
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"npm5 beta 56: npm pack changes timestamps to 01/01/1970 on Windows 7","articleBody":"#### I'm opening this issue because:\r\n\r\n - [x] npm is doing something I don't understand.\r\n\r\n#### What's going wrong?\r\n\r\n`npm pack` on Windows seems to be resetting timestamps to `01/01/1970`, which breaks ~several unzipping tools~ one zipping tool.\r\n\r\n#### How can the CLI team reproduce the problem?\r\n\r\nDownload the latest Node 8 rc, [v8.0.0-rc1 for win-x64](https://nodejs.org/download/rc/v8.0.0-rc.1/node-v8.0.0-rc.1-win-x64.zip) and unzip.\r\n\r\n```bat\r\ncd node-v8.0.0-rc.1-win-x64\r\nset path=%cd%;%path%\r\ncd ..\r\nmkdir tst\r\ncd tst\r\nnpm init -y\r\necho console.log('hello world') >index.js\r\nnpm pack\r\n:: Install Git Bash to get tar.exe\r\nset path=C:\\Program Files\\Git\\usr\\bin;%path%\r\ntar -xf tst-1.0.0.tgz\r\ncd package\r\ndir\r\n```\r\n\r\nOutput:\r\n\r\n```bat\r\n05/26/2017 03:49 PM \u003cDIR> .\r\n05/26/2017 03:49 PM \u003cDIR> ..\r\n01/01/1970 01:00 AM 29 index.js\r\n01/01/1970 01:00 AM 217 package.json\r\n 2 File(s) 246 bytes\r\n 2 Dir(s) 129,871,679,488 bytes free\r\n```\r\n\r\n### supporting information:\r\n\r\n - `npm -v`: `5.0.0-beta.56`\r\n - `node -v` : `v8.0.0-rc.1`\r\n - `npm config get registry`: `https://registry.npmjs.org/`\r\n - Windows: Windows 7\r\n\r\n","author":{"url":"https://github.com/gibfahn","@type":"Person","name":"gibfahn"},"datePublished":"2017-05-26T14:51:03Z","url":"https://github.com/npm/npm/issues/16734"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:7df0a344-ea13-e051-92c9-27af4367b379 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A412:397AC1:26D9FD:35DF1F:6AEDB015 |
| html-safe-nonce | 3844d24c91d413efad7f07618e296f36382255edb23cf4b80f610bd1c862f00e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNDEyOjM5N0FDMToyNkQ5RkQ6MzVERjFGOjZBRURCMDE1IiwidmlzaXRvcl9pZCI6IjM4NTgzMjMxOTcxNTI1NzE0MTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | aef77b233caeb24fce3d71b28d5acce3edbc2bdbd897a8de56600a79f868810f |
| hovercard-subject-tag | issue:231649111 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/npm/npm/16734/issue_layout |
| twitter:image | https://opengraph.githubassets.com/861003dccbdcd31043d5cdc32d994382b74a7758f94f929830165fc107437042/npm/npm/issues/16734 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/861003dccbdcd31043d5cdc32d994382b74a7758f94f929830165fc107437042/npm/npm/issues/16734 |
| og:image:alt | I'm opening this issue because: npm is doing something I don't understand. What's going wrong? npm pack on Windows seems to be resetting timestamps to 01/01/1970, which breaks several unzipping too... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | gibfahn |
| hostname | github.com |
| expected-hostname | github.com |
| None | e40242599af5e7da0f281843dec7492c322688d4a48caeea85f9fb8e41c8ea53 |
| turbo-cache-control | no-preview |
| go-import | github.com/npm/npm git https://github.com/npm/npm.git |
| octolytics-dimension-user_id | 6078720 |
| octolytics-dimension-user_login | npm |
| octolytics-dimension-repository_id | 321278 |
| octolytics-dimension-repository_nwo | npm/npm |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 321278 |
| octolytics-dimension-repository_network_root_nwo | npm/npm |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 89cbf2bb52a24fc179bf5925abba0ba574b262ce |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width