all of a sudden I get EPERM errors on npm install


(O Sjoerd Wie) #1

All of a sudden I cannot install packages anymore as npm install continuously fails on the same package with EPERM lstat errors.

I’ve checked my configuration with my peers and everything seems similar. The only difference is that they don’t run into the same problem and can install without problems.

I’v turned off my virus scanner, cleaned the npm cache, reinstalled Node, rebooted, … but nothing seems to help.

Any suggestions for additional steps to take?

Windows 8.1 Pro
Node 10.5.0
npm 6.1.0
(running GIT Bash as administrator)


Getting issue in npm install. Something wrong with registry. WARN tarball tarball data for @angular/compiler@7.1.0
(John Gee) #2

Can you show the command you are running, confirm the shell you are running it from (git bash?), and include the actual error message?

(It might be a permission error in the destination directory for the install, rather than an issue in the npm cache or node.)


(O Sjoerd Wie) #3

John,

One of the commands on which it now fails is the following npm install react-popper@git+https://github.com/SpiritIT/react-popper.git --no-optional --production --no-package-lock which I run from git bash.

The error that I get looks like the following (note that this instance returned an unlink error, whereas at other points I got an lstat error, maybe related to the chosen install options, which I tried to vary as well, just for verification):

8 error prepareGitDep 2> npm WARN install Usage of the `--dev` option is deprecated. Use `--only=dev` instead.
8 error prepareGitDep npm WARN tarball tarball data for flow-bin@^0.69.0 (sha512-SC5kiOiMk+8o1N2ZQ1mBfi0qBDYM+r6ZFQS7s+zXtyKrkbtCP+6JRTVvO3KXOnv568SK1G+Kg8/LlJwgyR+8Ug==) seems to be corrupted. Trying one more time.
8 error prepareGitDep npm WARN tar ENOENT: no such file or directory, open 'C:\Users\sjoerdd\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-a7db9707\node_modules\.staging\csso-aad7305e\lib\clean\Atrule.js'
8 error prepareGitDep npm WARN tar ENOENT: no such file or directory, open 'C:\Users\sjoerdd\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-a7db9707\node_modules\.staging\csso-aad7305e\lib\clean\Comment.js'
8 error prepareGitDep npm WARN tar ENOENT: no such file or directory, open 'C:\Users\sjoerdd\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-a7db9707\node_modules\.staging\csso-aad7305e\lib\clean\Declaration.js'
8 error prepareGitDep npm WARN tar ENOENT: no such file or directory, open 'C:\Users\sjoerdd\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-a7db9707\node_modules\.staging\csso-aad7305e\lib\clean\index.js'
8 error prepareGitDep npm WARN tar ENOENT: no such file or directory, lstat 'C:\Users\sjoerdd\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-a7db9707\node_modules\.staging\js-yaml-b0d90c70\lib\js-yaml\schema'
8 error prepareGitDep npm WARN tar ENOENT: no such file or directory, open 'C:\Users\sjoerdd\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-a7db9707\node_modules\.staging\csso-aad7305e\lib\clean\Operator.js'
8 error prepareGitDep npm WARN tar ENOENT: no such file or directory, open 'C:\Users\sjoerdd\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-a7db9707\node_modules\.staging\csso-aad7305e\lib\clean\Rule.js'
8 error prepareGitDep npm WARN tar ENOENT: no such file or directory, open 'C:\Users\sjoerdd\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-a7db9707\node_modules\.staging\csso-aad7305e\lib\clean\TypeSelector.js'
8 error prepareGitDep npm WARN tar ENOENT: no such file or directory, open 'C:\Users\sjoerdd\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-a7db9707\node_modules\.staging\csso-aad7305e\lib\clean\WhiteSpace.js'
8 error prepareGitDep npm WARN tar ENOENT: no such file or directory, lstat 'C:\Users\sjoerdd\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-a7db9707\node_modules\.staging\csso-bea81cea\lib\compressor\restructure'
8 error prepareGitDep npm WARN tar ENOENT: no such file or directory, lstat 'C:\Users\sjoerdd\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-a7db9707\node_modules\.staging\csso-bea81cea\lib\compressor'
8 error prepareGitDep npm WARN tar ENOENT: no such file or directory, open 'C:\Users\sjoerdd\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-a7db9707\node_modules\.staging\css-tree-ede2d37a\lib\lexer\ast-to-tokens.js'
8 error prepareGitDep npm WARN tar ENOENT: no such file or directory, open 'C:\Users\sjoerdd\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-a7db9707\node_modules\.staging\css-tree-ede2d37a\lib\lexer\error.js'
8 error prepareGitDep npm WARN tar ENOENT: no such file or directory, open 'C:\Users\sjoerdd\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-a7db9707\node_modules\.staging\css-tree-ede2d37a\lib\lexer\generic.js'
8 error prepareGitDep npm WARN tar ENOENT: no such file or directory, open 'C:\Users\sjoerdd\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-a7db9707\node_modules\.staging\css-tree-267ecb76\lib\syntax\atrule\font-face.js'
8 error prepareGitDep npm WARN tar ENOENT: no such file or directory, open 'C:\Users\sjoerdd\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-a7db9707\node_modules\.staging\css-tree-267ecb76\lib\syntax\atrule\import.js'
8 error prepareGitDep npm WARN tar ENOENT: no such file or directory, open 'C:\Users\sjoerdd\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-a7db9707\node_modules\.staging\css-tree-267ecb76\lib\syntax\atrule\index.js'
8 error prepareGitDep npm WARN tar ENOENT: no such file or directory, open 'C:\Users\sjoerdd\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-a7db9707\node_modules\.staging\css-tree-267ecb76\lib\syntax\atrule\media.js'
8 error prepareGitDep npm WARN tar ENOENT: no such file or directory, open 'C:\Users\sjoerdd\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-a7db9707\node_modules\.staging\js-yaml-b0d90c70\lib\js-yaml\type\js\function.js'
8 error prepareGitDep npm WARN tar ENOENT: no such file or directory, open 'C:\Users\sjoerdd\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-a7db9707\node_modules\.staging\css-tree-267ecb76\lib\syntax\atrule\page.js'
8 error prepareGitDep npm WARN tar ENOENT: no such file or directory, open 'C:\Users\sjoerdd\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-a7db9707\node_modules\.staging\css-tree-267ecb76\lib\syntax\atrule\supports.js'
8 error prepareGitDep npm WARN tar ENOENT: no such file or directory, open 'C:\Users\sjoerdd\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-a7db9707\node_modules\.staging\js-yaml-b0d90c70\lib\js-yaml\type\js\regexp.js'
8 error prepareGitDep npm WARN tar ENOENT: no such file or directory, open 'C:\Users\sjoerdd\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-a7db9707\node_modules\.staging\js-yaml-b0d90c70\lib\js-yaml\type\js\undefined.js'
8 error prepareGitDep npm WARN tar ENOENT: no such file or directory, open 'C:\Users\sjoerdd\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-a7db9707\node_modules\.staging\js-yaml-b0d90c70\lib\js-yaml\type\map.js'
8 error prepareGitDep npm WARN tar ENOENT: no such file or directory, open 'C:\Users\sjoerdd\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-a7db9707\node_modules\.staging\js-yaml-b0d90c70\lib\js-yaml\type\merge.js'
8 error prepareGitDep npm WARN tar ENOENT: no such file or directory, open 'C:\Users\sjoerdd\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-a7db9707\node_modules\.staging\js-yaml-b0d90c70\lib\js-yaml\type\null.js'
8 error prepareGitDep npm WARN tar ENOENT: no such file or directory, open 'C:\Users\sjoerdd\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-a7db9707\node_modules\.staging\js-yaml-b0d90c70\lib\js-yaml\type\omap.js'
8 error prepareGitDep npm WARN tar ENOENT: no such file or directory, open 'C:\Users\sjoerdd\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-a7db9707\node_modules\.staging\js-yaml-b0d90c70\lib\js-yaml\type\pairs.js'
8 error prepareGitDep npm WARN tar ENOENT: no such file or directory, open 'C:\Users\sjoerdd\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-a7db9707\node_modules\.staging\js-yaml-b0d90c70\lib\js-yaml\type\seq.js'
8 error prepareGitDep npm WARN tar ENOENT: no such file or directory, open 'C:\Users\sjoerdd\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-a7db9707\node_modules\.staging\js-yaml-b0d90c70\lib\js-yaml\type\set.js'
8 error prepareGitDep npm WARN tar ENOENT: no such file or directory, open 'C:\Users\sjoerdd\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-a7db9707\node_modules\.staging\js-yaml-b0d90c70\lib\js-yaml\type\str.js'
8 error prepareGitDep npm WARN tar ENOENT: no such file or directory, open 'C:\Users\sjoerdd\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-a7db9707\node_modules\.staging\js-yaml-b0d90c70\lib\js-yaml\type\timestamp.js'
8 error prepareGitDep npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents):
8 error prepareGitDep npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
8 error prepareGitDep npm WARN react-dom@16.6.3 requires a peer of react@^16.6.3 but none is installed. You must install peer dependencies yourself.
8 error prepareGitDep npm WARN react-test-renderer@16.6.3 requires a peer of react@^16.6.3 but none is installed. You must install peer dependencies yourself.
8 error prepareGitDep
8 error prepareGitDep npm ERR! path C:\Users\sjoerdd\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-a7db9707\node_modules\.staging\flow-bin-facb4426\flow-linux64-v0.69.0\flow
8 error prepareGitDep npm ERR! code EPERM
8 error prepareGitDep npm ERR! errno -4048
8 error prepareGitDep npm ERR! syscall unlink
8 error prepareGitDep npm ERR! Error: EPERM: operation not permitted, unlink 'C:\Users\sjoerdd\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-a7db9707\node_modules\.staging\flow-bin-facb4426\flow-linux64-v0.69.0\flow'
8 error prepareGitDep npm ERR!  { [Error: EPERM: operation not permitted, unlink 'C:\Users\sjoerdd\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-a7db9707\node_modules\.staging\flow-bin-facb4426\flow-linux64-v0.69.0\flow']
8 error prepareGitDep npm ERR!   cause:
8 error prepareGitDep npm ERR!    { Error: EPERM: operation not permitted, unlink 'C:\Users\sjoerdd\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-a7db9707\node_modules\.staging\flow-bin-facb4426\flow-linux64-v0.69.0\flow'
8 error prepareGitDep npm ERR!      errno: -4048,
8 error prepareGitDep npm ERR!      code: 'EPERM',
8 error prepareGitDep npm ERR!      syscall: 'unlink',
8 error prepareGitDep npm ERR!      path:
8 error prepareGitDep npm ERR!       'C:\\Users\\sjoerdd\\AppData\\Roaming\\npm-cache\\_cacache\\tmp\\git-clone-a7db9707\\node_modules\\.staging\\flow-bin-facb4426\\flow-linux64-v0.69.0\\flow' },
8 error prepareGitDep npm ERR!   stack:
8 error prepareGitDep npm ERR!    'Error: EPERM: operation not permitted, unlink \'C:\\Users\\sjoerdd\\AppData\\Roaming\\npm-cache\\_cacache\\tmp\\git-clone-a7db9707\\node_modules\\.staging\\flow-bin-facb4426\\flow-linux64-v0.69.0\\flow\'',
8 error prepareGitDep npm ERR!   errno: -4048,
8 error prepareGitDep npm ERR!   code: 'EPERM',
8 error prepareGitDep npm ERR!   syscall: 'unlink',
8 error prepareGitDep npm ERR!   path:
8 error prepareGitDep npm ERR!    'C:\\Users\\sjoerdd\\AppData\\Roaming\\npm-cache\\_cacache\\tmp\\git-clone-a7db9707\\node_modules\\.staging\\flow-bin-facb4426\\flow-linux64-v0.69.0\\flow',
8 error prepareGitDep npm ERR!   parent: 'react-popper' }
8 error prepareGitDep npm ERR!
8 error prepareGitDep npm ERR! The operation was rejected by your operating system.
8 error prepareGitDep npm ERR! It's possible that the file was already in use (by a text editor or antivirus),
8 error prepareGitDep npm ERR! or that you lack permissions to access it.
8 error prepareGitDep npm ERR!
8 error prepareGitDep npm ERR! If you believe this might be a permissions issue, please double-check the
8 error prepareGitDep npm ERR! permissions of the file and its containing directories, or try running
8 error prepareGitDep npm ERR! the command again as root/Administrator (though this is not recommended).
8 error prepareGitDep
8 error prepareGitDep npm ERR! A complete log of this run can be found in:
8 error prepareGitDep npm ERR!     C:\Users\sjoerdd\AppData\Roaming\npm-cache\_logs\2018-11-26T07_50_21_770Z-debug.log
9 silly fetchPackageMetaData error for react-popper@git+https://github.com/SpiritIT/react-popper.git premature close
10 timing stage:rollbackFailedOptional Completed in 1ms
11 timing stage:runTopLevelLifecycles Completed in 430092ms
12 verbose stack Error: premature close
12 verbose stack     at PassThrough.onclose (C:\Program Files\nodejs\node_modules\npm\node_modules\end-of-stream\index.js:47:67)
12 verbose stack     at PassThrough.emit (events.js:187:15)
12 verbose stack     at emitCloseNT (internal/streams/destroy.js:59:8)
12 verbose stack     at process._tickCallback (internal/process/next_tick.js:63:19)
13 verbose cwd C:\Source\modules\exlent-abb-ui
14 verbose Windows_NT 6.3.9600
15 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "react-popper@git+https://github.com/SpiritIT/react-popper.git" "--no-optional" "--production" "--no-package-lock"
16 verbose node v10.5.0
17 verbose npm  v6.1.0
18 error premature close
19 verbose exit [ 1, true ]

(system) #5

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.