Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm ci failes with errno -4048 #349

Closed
darcyclarke opened this issue Nov 8, 2019 · 2 comments
Closed

npm ci failes with errno -4048 #349

darcyclarke opened this issue Nov 8, 2019 · 2 comments
Labels
Bug thing that needs fixing

Comments

@darcyclarke
Copy link
Contributor

  Original bug ticket: [https://npm.community/t/10556](https://npm.community/t/10556)
  Originally filed: 2019-10-15T18:53:13.181Z
@darcyclarke darcyclarke added Bug Bug thing that needs fixing and removed Community labels Nov 8, 2019
@mwpowellhtx
Copy link

Similar error here, ran npm install with the following results. Paths changed to protect the innocent.

20074 warn enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'X:\path\to\node_modules\.staging\fsevents-9b7ff08e\node_modules\abbrev' -> 'X:\path\to\node_modules\.staging\abbrev-dbad1e86'
20075 verbose enoent SKIPPING OPTIONAL DEPENDENCY: This is related to npm not being able to find a file.
20075 verbose enoent SKIPPING OPTIONAL DEPENDENCY:
20076 verbose stack Error: EPERM: operation not permitted, unlink 'X:\path\to\node_modules\.staging\typescript-87f3ef63\lib\tsserver.js'
20077 verbose cwd X:\path\to
20078 verbose Windows_NT 10.0.19041
20079 verbose argv "C:\\Dev\\nodejs\\node.exe" "C:\\Dev\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
20080 verbose node v12.17.0
20081 verbose npm  v6.14.4
20082 error code EPERM
20083 error syscall unlink
20084 error path X:\path\to\node_modules\.staging\typescript-87f3ef63\lib\tsserver.js
20085 error errno -4048
20086 error Error: EPERM: operation not permitted, unlink 'X:\path\to\node_modules\.staging\typescript-87f3ef63\lib\tsserver.js'
20086 error  [OperationalError: EPERM: operation not permitted, unlink 'X:\path\to\node_modules\.staging\typescript-87f3ef63\lib\tsserver.js'] {
20086 error   cause: [Error: EPERM: operation not permitted, unlink 'X:\path\to\node_modules\.staging\typescript-87f3ef63\lib\tsserver.js'] {
20086 error     errno: -4048,
20086 error     code: 'EPERM',
20086 error     syscall: 'unlink',
20086 error     path: 'X:\\path\\to\\node_modules\\.staging\\typescript-87f3ef63\\lib\\tsserver.js'
20086 error   },
20086 error   errno: -4048,
20086 error   code: 'EPERM',
20086 error   syscall: 'unlink',
20086 error   path: 'X:\\path\\to\\node_modules\\.staging\\typescript-87f3ef63\\lib\\tsserver.js',
20086 error   parent: 'Planner.Web.Client'
20086 error }
20087 error The operation was rejected by your operating system.
20087 error It's possible that the file was already in use (by a text editor or antivirus),
20087 error or that you lack permissions to access it.
20087 error
20087 error If you believe this might be a permissions issue, please double-check the
20087 error permissions of the file and its containing directories, or try running
20087 error the command again as root/Administrator.
20088 verbose exit [ -4048, true ]

All the guidance I read is "run in elevated" or "administrator" mode, which I am, through an administrator command prompt. So that is not the issue.

Running under Windows 10 Pro version 2004 build 19041 (x64).

@mwpowellhtx
Copy link

For me, closing Visual Studio might have been the resolution here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug thing that needs fixing
Projects
None yet
Development

No branches or pull requests

2 participants