Skip to content

Incorrect permissions in ts-node-9.1.0.tgz package cause problems on Windows #1172

Description

@ljani

Expected Behavior

> npm install --save ts-node@9.1.0
added 10 packages, and audited 10 packages in 2s
found 0 vulnerabilities

Actual Behavior

> npm install --save ts-node@9.1.0
npm WARN tar TAR_ENTRY_ERROR EPERM: operation not permitted, unlink 'C:\devel\tsnodeissue\node_modules\ts-node\dist\bin-script-deprecated.js.DELETE.6bad7b3aefa457ee475cbe3e0ab11a71'
npm WARN tar TAR_ENTRY_ERROR EPERM: operation not permitted, unlink 'C:\devel\tsnodeissue\node_modules\ts-node\dist\bin-transpile.js.DELETE.ce41aa8b732a61e09096af485533cf39'
added 10 packages, and audited 10 packages in 2s
found 0 vulnerabilities

Sometimes index.js has similar problems, I'm not sure why it won't fail always:

npm WARN tar TAR_ENTRY_ERROR EPERM: operation not permitted, unlink 'C:\devel\tsnodeissue\node_modules\ts-node\dist\bin-script-deprecated.js.DELETE.8068fdc3a9a01bade897c512061e070b'
npm WARN tar TAR_ENTRY_ERROR EPERM: operation not permitted, unlink 'C:\devel\tsnodeissue\node_modules\ts-node\dist\bin-script.js.DELETE.aa1a8902e3b47234d47d9b7132d3b5ef'
npm WARN tar TAR_ENTRY_ERROR EPERM: operation not permitted, unlink 'C:\devel\tsnodeissue\node_modules\ts-node\dist\bin-transpile.js.DELETE.f6940ca2fd83d98a8f3b8aa33bb5a090'
npm WARN tar TAR_ENTRY_ERROR EPERM: operation not permitted, unlink 'C:\devel\tsnodeissue\node_modules\ts-node\dist\index.js.DELETE.6e814ea0ba184ddb4b958fe96cfd77d6'

Steps to reproduce the problem

  • Get a Windows 10 box
  • Install Node.JS v15.3.0 with npm@7

Minimal reproduction

npm init --yes
npm install --save ts-node@9.1.0

Specifications

> node -v
v15.3.0
> npm -v
7.1.0
> ver
Microsoft Windows [Version 10.0.19042.630]

Other

ts-node@9.0.0 works fine.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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