Error: EPERM: operation not permitted, unlink 'C:\Users\Administrator\Views\Pack ages\ohif-measurements\.npm\package-new-12rovu8.dmf6\node_modules' on windows server 2012R2
Hello, Nodejs version: 8.11.3 npm version: 5.6.0 meteor version: 1.7.0.3
I have tried so many commands: meteor update --patch meteor udpate meteor meteor --settings ../config/orthancDICOMWeb.json
I have tried the latest nod js and npm versions also I have tried build for production also but I am getting this error on windows server 2012 R2 every time by following all the instructions and tutorial
=> Started proxy. ohif:measurements: updating npm dependencies -- ajv, url, jspdf... => A patch (Meteor 1.7.0.5) for your current release is available! Update this project now with 'meteor update --patch'. C:\Users\Administrator\AppData\Local.meteor\packages\meteor-tool\1.7.0_3\mt-os. windows.x86_64\dev_bundle\lib\node_modules\meteor-promise\promise_server.js:218 throw error; ^
Error: EPERM: operation not permitted, unlink 'C:\Users\Administrator\Views\Pack
ages\ohif-measurements.npm\package-new-12rovu8.dmf6\node_modules'
=> awaited here:
at Promise.await (C:\Users\Administrator\AppData\Local.meteor\packages\mete
or-tool\1.7.0_3\mt-os.windows.x86_64\dev_bundle\lib\node_modules\meteor-promise
promise_server.js:60:12)
at Object.files.rm_recursive.path [as rm_recursive] (C:\tools\fs\files.js:32
5:7)
at Object.meteorNpm.updateDependencies (C:\tools\isobuild\meteor-npm.js:131:
13)
at Object.compile (C:\tools\isobuild\compiler.js:128:19)
at C:\tools\isobuild\isopack-cache.js:354:30
at C:\tools\utils\buildmessage.js:359:18
at exports.EnvironmentVariable.withValue (C:\tools\utils\fiber-helpers.js:89
:14)
at C:\tools\utils\buildmessage.js:352:34
at exports.EnvironmentVariable.withValue (C:\tools\utils\fiber-helpers.js:89
:14)
at C:\tools\utils\buildmessage.js:350:23
at exports.EnvironmentVariable.withValue (C:\tools\utils\fiber-helpers.js:89
:14)
at Object.enterJob (C:\tools\utils\buildmessage.js:324:26)
at IsopackCache.loadLocalPackage (C:\tools\isobuild\isopack-cache.js:309:18
)
at Profile.time (C:\tools\isobuild\isopack-cache.js:243:16)
at Function.time (C:\tools\tool-env\profile.js:305:10)
at C:\tools\isobuild\isopack-cache.js:242:17
at C:\tools\utils\buildmessage.js:359:18
at exports.EnvironmentVariable.withValue (C:\tools\utils\fiber-helpers.js:89
:14)
at C:\tools\utils\buildmessage.js:352:34
at exports.EnvironmentVariable.withValue (C:\tools\utils\fiber-helpers.js:89
:14)
at C:\tools\utils\buildmessage.js:350:23
at exports.EnvironmentVariable.withValue (C:\tools\utils\fiber-helpers.js:89
:14)
at Object.enterJob (C:\tools\utils\buildmessage.js:324:26)
at IsopackCache.ensurePackageLoaded (C:\tools\isobuild\isopack-cache.js:233
:20)
at ensureLoaded (C:\tools\isobuild\isopack-cache.js:207:12)
at C:\tools\isobuild\isopack-cache.js:235:11
at Array.forEach (
Same OHIF viewer package with given nodejs,npm and meteor version is running well on windows 10 but not windows server 2012 R2 Please help me anybody to resolve this issue
Thanks
Encountering the same problem.. Does anyone have solution?
I have been getting this problem recently and having hard time finding the root cause. The difference is that you might get the error on different random packages but mostly on "ohif-cornerstone"
Searching google for this error will show it is a very popular problem with node
Here are some ways I have been able to successfully pass this issue, it is random though so please report back what your experience is:
- Disable your Anti-virus. In my case this is Windows Defender
- Make sure no other node server is running in the background. Check the process in "Task Manager" and if you have Visual Studio opened make sure it is closed.
- Keep running the build over and over and see if the package that has the error change or eventually the build will just work.
- Try to restart your machine and start your build "meteor" after disabling your antivirus.
Please let me know if this works for you or you happen to find a different way.
It fails because the folder in error is not exist. For your case the folder's path is "C:\Users\Administrator\Views\Pack ages\ohif-measurements.npm\package-new-12rovu8.dmf6\node_modules" If folder does not exist create it.