Error: EPERM: operation not permitted, open "C" - batch-file

I am getting following error while running a build definition.
I tried to give read/write permission by right clicking the Builds directory, but after running the build using build definition the permissions get reset.
The files get created by calling "gulp" command from a post script bat file.
How to get rid of this error?

I was wondering if it's related to the npm install issue. Please refer this npm install fails on Windows with "EPERM, operation not permitted" for more details.
Here is also a similar question Visual Studio 2015 hybrid app - getting "EPERM, operation not permitted"

Related

ERROR in EPERM: operation not permitted, open

I have a react application that starts up fine and has been running for some time now however now when I go to make any edits I am met with the following error....
ERROR in EPERM: operation not permitted, open 'C:\Users\Administrator\Desktop\ApplicantApp\FrontEnd\build\node_modules.cache.eslintcache'
Any ideas how to fix?
My exact error was
"ERROR in [eslint] EPERM: operation not permitted, open
'Y:\Caido\Dev\CaidoWebFramework\caido_nodejs\node_modules.cache.eslintcache'"
and I solved it like this: In Windows, I right clicked for folder properties on the folder Y:\Caido\Dev\CaidoWebFramework\caido_nodejs\node_modules.cache and unchecked ReadOnly and Hidden.
But I don't really understand what heappened because:
if I reopen the folder properties again the ReadOnly and Hidden boxes are not changed even if I just saved the same dialog with both checkboxes unchecked.
the message is about a file that can't be opened and I don't know why these atributtes would affect the behaviour.
Still I'm sure that after I uncheckd these checkboxes for the first time the problem dissapeared.
ERROR in [eslint] EPERM: operation not permitted, open 'D:\CODING\web dev\projects 2.0\portfolio 2.0\frontend_react\node_modules.cache.eslintcache'
For this just go into the path and delete the .eslintcache file, npm will create
a new file without any problem.
this problem is created because of running build commands over and over again and when you try to push git commands and all atleast in my case
but after doing all this it is solved so enjoy ....
Seems like you don't have the permission to edit within the folder. You need to give yourself the permission to edit C:\Users\Administrator\Desktop\ApplicantApp\FrontEnd. Depending on which Operating System you are using, allowing edit permission might vary. For Mac OS, you need to check the permission of each folder of the whole path 'C:\Users\Administrator\Desktop\ApplicantApp\FrontEnd\build\node_modules.cache.eslintcache'.
Then, you can remove node_modules folder, and then build it again with npm install (or yarn/Gulp depends on which package manager you are using to build).
I'm not sure if it will fix you problem, but no problem in trying :) Best of luck.

Cannot deploy to with gh-pages with specific project due to error: cannot spawn sh: No such file or directory

Keep getting the error:
error: cannot spawn sh: No such file or directory
fatal: unable to fork
The project builds correctly but when trying to deploy my website it fails.
Website was created with "create-react-app" on my windows 8 pc with the command "gh-pages -d build"
This issue only occurs in this specific project on my pc as when I create a new project with "create-react-app" on my pc it'll deploy fine. This specific project can also be deployed fine with "gh-pages -d build" on my mac but not my pc.
Error of failing to deploy on console
Error log console references
Repository
Somewhere along the line I must've messed up something. I've looked over the web, tried reinstalling git, editor, dependencies and am super confused as to what's causing this. It must be an operating system difference? Thanks!
It's trying to spawn sh.exe but can't find it.
You need to add the git directory that contains sh.exe to your system variables.
(go start and type: 'path'. This should provide you with a shortcut to 'system environment variables'. If not look up how to edit environment variables on your version of windows.)
Once you have the environment variables dialogue box open, have a look in the System variables > 'path' list. There may be a git directory there that doesn't contain sh.exe. You need to replace it with one that does (ensure this also contains git.exe).
On my pc sh.exe was found in:
C:\Program Files\Git\bin
Once this is done restart the terminal and attempt to deploy again.

Failed with error: ‘‘operator’ is not a valid installed package

Currently I am having problems with loading an R package that I downloaded from github (https://github.com/hafen/operator). I downloaded the package and put it in my local R folder: "C:/..../Documents/R/win-library/3.2/operator".
However, I have not been able to load said package into R. I keep on receiving the following errors when trying to load the package. Can anyone help me. I found an error that I though was somewhat relevant that suggest updating "Rcpp" which I have already done with no success. Thank you in advance for any and all help!
I should add. I looked into this a bit more and realized the issue I am having is revolving around the C script that is contained within the package. If I remove the C script I can load the package, however, some of the package functions are dependent on the script and will not run as a result.
> require(operator)
Loading required package: operator
Failed with error: ‘‘operator’ is not a valid installed package’
or
> devtools::load_all("C:/..../Documents/R/win-library/3.2/operator")
Loading operator
Re-compiling operator
"C:/PROGRA~1/R/R-32~1.2/bin/x64/R" --no-site-file --no-environ --no-save --no-restore --quiet CMD INSTALL \
"C:\Users\blakey1\Documents\R\win-library\3.2\operator" \
--library="C:\Users\blakey1\AppData\Local\Temp\Rtmpe611i9\devtools_install_499c5059149c" --no-R --no-data \
--no-help --no-demo --no-inst --no-docs --no-exec --no-multiarch --no-test-load
* installing *source* package 'operator' ...
** libs
Warning: running command 'make -f "C:/PROGRA~1/R/R-32~1.2/etc/x64/Makeconf" -f "C:/PROGRA~1/R/R-32~1.2/share/make/winshlib.mk" SHLIB="operator.dll" WIN=64 TCLBIN=64 OBJECTS="loess_op.o"' had status 127
ERROR: compilation failed for package 'operator'
* removing 'C:/Users/blakey1/AppData/Local/Temp/Rtmpe611i9/devtools_install_499c5059149c/operator'
Error: Command failed (1)
I was facing the same issue with RTextTools, as RTextTools is now not available on CRAN.
I have Download RTextTools From Given Link

https://cran.r-project.org/src/contrib/Archive/RTextTools/
and copy
RTextTools_1.4.2.tar.gz file in project root folder
then
run this command in project folder in terminal
"R CMD INSTALL RTextTools_1.4.2.tar.gz"
After running this command I receive below error
"ERROR: dependencies ‘SparseM’, ‘randomForest’, ‘tree’, ‘e1071’, ‘ipred’, ‘caTools’, ‘maxent’, ‘glmnet’, ‘tau’ are not available for package ‘RTextTools’"
Now install each dependencies from RStudio or RConsole (Any Editor used by you) by simply running this code
install.packages("caTools")
Install all 9 required packages One By One (In My Case it was 9 Packages Dependencies required by RTextTools)
all packages will be installed except 'maxent'
Now download maxent from the given link
https://cran.r-project.org/src/contrib/Archive/maxent/
and copy maxent_1.3.3.1.tar file in project folder then
run this command in project folder in terminal
"R CMD INSTALL maxent_1.3.3.1.tar"
Now For RTextTools Run this command again in Terminal
"R CMD INSTALL RTextTools_1.4.2.tar.gz"
All is done Now..
But the Last Step is
Load the RTextTools using
library(RTextTools)
You will see one more Error: Load SparseM
Now Loading SparseM use code below
library(SparseM)
and in the last Load RTextTools
library(RTextTools)

JVM error while installing clearcase

I am unable to install ClearCase version 8.0.3 in RHEL7.
I have installed all the dependencies, and yet it still shows error.
While doing ./launchpad.sh under the path /Clearcase/Setup/disk1/, it opens in Mozilla and shows the added error.
JVM error while installing clearcase
When I install through /Clearcase/Agent/ with ./install, it installs version 1.7.2 and does not shows list of versions when I click on show all versions.
How can I get pass this error message?
It depends on the exact error you have.
For instance, following this technote, you could see:
launchpad.sh script generates this error:
JVM Terminated. Exit Code=1
Clicking Close on the GUI pop-up window then reports this error:
Error loading: /cc71bin/disk1/InstallerImage_linux/jre_5.0.3.sr8a_20080811b/jre/bin/classic/libjvm.so:
cannot restore segment prot after reloc: Permission denied
That is because:
This might occur if Secure Linux (SELinux) is enabled.
To disable SELinux:
Edit the file /etc/selinux/config.
Change the line "SELINUX=enforcing" to "SELINUX=disable" or "SELINUX=permissive", and then reboot the machine.

yo angular-fullstack failure installing on linux local

Getting the error below. I tried running as sudo and as myself. Same error. This is Linux mint Rosa. The install gets through the yo questionnaire but fails on permissions what looks like it. I am new to Linux. Please help.
create bower.json
fs.js:549
return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
^
Error: EACCES: permission denied, open '/home/mastermean/bower.json'
at Error (native)
at Object.fs.openSync (fs.js:549:18)
at Object.fs.writeFileSync (fs.js:1156:15)
at write (/usr/lib/node_modules/generator-angular-fullstack/node_modules/yeoman-generator/node_modules/mem-fs-editor/actions/commit.js:14:6)
at DestroyableTransform._transform (/usr/lib/node_modules/generator-angular-fullstack/node_modules/yeoman-generator/node_modules/mem-fs-editor/actions/commit.js:43:7)
at DestroyableTransform.Transform._read (/usr/lib/node_modules/generator-angular-fullstack/node_modules/readable-stream/lib/_stream_transform.js:172:10)
at DestroyableTransform.Transform._write (/usr/lib/node_modules/generator-angular-fullstack/node_modules/readable-stream/lib/_stream_transform.js:160:12)
at doWrite (/usr/lib/node_modules/generator-angular-fullstack/node_modules/readable-stream/lib/_stream_writable.js:335:12)
at writeOrBuffer (/usr/lib/node_modules/generator-angular-fullstack/node_modules/readable-stream/lib/_stream_writable.js:321:5)
at DestroyableTransform.Writable.write (/usr/lib/node_modules/generator-angular-fullstack/node_modules/readable-stream/lib/_stream_writable.js:248:11)
jul#jul-Inspiron-5558 /home/mastermean $
Try running this from a terminal:
cd ~
mkdir app
cd app
yo angular-fullstack
(It may be necessary to run that last command as sudo yo angular-fullstack depending on how yeoman was installed.)
It looks like the file bower.json does not have write permission. You may be able to fix the issue by fixing your existing permissions, but the above sequence should get you going without mucking about with permissions.

Resources