Open JTonda opened 5 years ago
Cannot reproduce the issue with the newer versions of the package
I'm seeing this error again:
$ zowe plugins uninstall @zowe/db2-for-zowe-cli
npm ERR! code EBUSY
npm ERR! syscall rename
npm ERR! path C:\Users\Timothy\.zowe\plugins\installed\node_modules\@zowe\db2-for-zowe-cli\node_modules\ibm_db\installer\clidriver\bin
npm ERR! dest C:\Users\Timothy\.zowe\plugins\installed\node_modules\@zowe\.db2-for-zowe-cli-6tqjQbu5\node_modules\ibm_db\installer\clidriver\bin
npm ERR! errno -4082
npm ERR! EBUSY: resource busy or locked, rename 'C:\Users\Timothy\.zowe\plugins\installed\node_modules\@zowe\db2-for-zowe-cli\node_modules\ibm_db\installer\clidriver\bin' -> 'C:\Users\Timothy\.zowe\plugins\installed\node_modules\@zowe\.db2-for-zowe-cli-6tqjQbu5\node_modules\ibm_db\installer\clidriver\bin'
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Timothy\AppData\Local\npm-cache\_logs\2023-06-16T14_50_20_813Z-debug-0.log
Command Error:
Uninstall Failed
Error Details:
Command failed: C:\Program Files\nodejs\npm.CMD uninstall @zowe/db2-for-zowe-cli --prefix C:\Users\Timothy\.zowe\plugins\installed -g
App | Version |
---|---|
Zowe CLI | 7.16.2 |
npm | 9.5.1 |
Node | 18.16.0 |
DB2 plug-in | 5.0.3 |
From @AHumanFromCA on September 26, 2018 14:20
Opened this issue a while ago, I am transferring it over here since I do not see that it has been resolved yet.
I am unable to uninstall the DB2 plugin through Brightside.
The first uninstall attempt reports back that there is a locked file:
Sometimes this will break npm cache and make DB2 uninstallable without a complete reinstall.
My theory is that the lock somehow is gathered by the bright process due to these observations.
npm uninstall "@brightside/db2" --prefix C:\Users\XXXXXXXX\.brightside\plugins\installed -g
will uninstall the plugin's node folders every time.That 2nd observation is why I believe that it isn't because of antivirus software.
Copied from original issue: gizafoundation/zowe-cli-db2-plugin#4