Skip to content

EPERM in version 3.7.0, error related to adal node package #223

@Dayof

Description

@Dayof

Steps to reproduce

npm i -g @loopback/cli
npm install loopback-connector-mssql@3.7.0 --save

Current Behavior

npm ERR! code EPERM
npm ERR! syscall rename
npm ERR! path C:\nodejs\npm\node_modules\loopback-connector-mssql\node_modules\.adal
node.DELETE\node_modules\@types 
npm ERR! dest C:\nodejs\npm\node_modules\loopback-connector-mssql\node_modules\adal
node\node_modules\@types
npm ERR! errno -4048
npm ERR! Error: EPERM: operation not permitted, rename 'C:\nodejs\npm\node_modules\loopback-connector-mssql\node_modules\.adal-node.DELETE\node_modules\@types' -> 'C:\nodejs\npm\node_modules\loopback-connector-mssql\node_modules\adal-node\node_modules\@types'
npm ERR!  [OperationalError: EPERM: operation not permitted, rename 'C:\nodejs\npm\node_modules\loopback-connector-mssql\node_modules\.adal-node.DELETE\node_modules\@types' -> 'C:\nodejs\npm\node_modules\loopback-connector-mssql\node_modules\adal-node\node_modules\@types'] {
npm ERR!   cause: [Error: EPERM: operation not permitted, rename 'C:\nodejs\npm\node_modules\loopback-connector-mssql\node_modules\.adal-node.DELETE\node_modules\@types' -> 'C:\nodejs\npm\node_modules\loopback-connector-mssql\node_modules\adal-node\node_modules\@types'] {
npm ERR!     errno: -4048,
npm ERR!     code: 'EPERM',
npm ERR!     syscall: 'rename',
npm ERR!     path: 'C:\\nodejs\\npm\\node_modules\\loopback-connector-mssql\\node_modules\\.adal-node.DELETE\\node_modules\\@types',                                                                                                                                           npm ERR!     dest: 'C:\\nodejs\\npm\\node_modules\\loopback-connector-mssql\\node_modules\\adal-node\\node_modules\\@types'
npm ERR!   },
npm ERR!   stack: "Error: EPERM: operation not permitted, rename 'C:\\nodejs\\npm\\node_modules\\loopback-connector-mssql\\node_modules\\.adal-node.DELETE\\node_modules\\@types' -> 'C:\\nodejs\\npm\\node_modules\\loopback-connector-mssql\\node_modules\\adal-node\\node_modules\\@types'", 
npm ERR!   errno: -4048,
npm ERR!   code: 'EPERM', 
npm ERR!   syscall: 'rename',  
npm ERR!   path: 'C:\\nodejs\\npm\\node_modules\\loopback-connector-mssql\\node_modules\\.adal-node.DELETE\\node_modules\\@types',                                                                                                                                             npm ERR!   dest: 'C:\\nodejs\\npm\\node_modules\\loopback-connector-mssql\\node_modules\\adal-node\\node_modules\\@types',
npm ERR!   parent: 'loopback-connector-mssql'
npm ERR! } 
npm ERR! 
npm ERR! The operation was rejected by your operating system.
npm ERR! It's possible that the file was already in use (by a text editor or antivirus),
npm ERR! or that you lack permissions to access it.
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the 
npm ERR! permissions of the file and its containing directories, or try running 
npm ERR! the command again as root/Administrator. 
npm ERR! A complete log of this run can be found in: 
npm ERR!     C:\nodejs\npm-cache\_logs\2020-01-23T18_06_34_830Z-debug.log

Expected Behavior

I was expecting to install the package in my local project, I tried with -g too but I had the same problem. The last version didn't show this problem, the installation with loopback-connector-mssql@3.6.0 works.

Additional information

win32 x64 12.14.1
test@1.0.0 C:\temp\test
+-- @loopback/boot@1.7.1
+-- @loopback/context@1.25.1
+-- @loopback/core@1.12.1
+-- @loopback/openapi-v3@1.11.0
+-- @loopback/repository@1.17.0
+-- @loopback/rest@1.25.1
+-- @loopback/rest-explorer@1.4.7
`-- @loopback/service-proxy@1.3.14

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions