Encountering error while trying to emulate an android application using phonegap.
I have built the project but while running phonegap emulate I get an error which is
`Error: spawn EACCES
at exports._errnoException (util.js:1028:11)
at ChildProcess.spawn (internal/child_process.js:313:11)
at Object.exports.spawn (child_process.js:387:9)
at /home/adarsh/Documents/hack2help/platforms/android/cordova/lib/emulator.js:205:18
at _fulfilled (/home/adarsh/Documents/hack2help/platforms/android/cordova/node_modules/q/q.js:835:54)
at self.promiseDispatch.done (/home/adarsh/Documents/hack2help/platforms/android/cordova/node_modules/q/q.js:864:30)
at Promise.promise.promiseDispatch (/home/adarsh/Documents/hack2help/platforms/android/cordova/node_modules/q/q.js:797:13)
at /home/adarsh/Documents/hack2help/platforms/android/cordova/node_modules/q/q.js:605:44
at runSingle (/home/adarsh/Documents/hack2help/platforms/android/cordova/node_modules/q/q.js:138:13)
at flush (/home/adarsh/Documents/hack2help/platforms/android/cordova/node_modules/q/q.js:126:13)`
I have tried multiple solutions from the internet, granting permissions to the application folder didn't work.
In cordova I set chmod -R 777 username to my Android-sdk directory, this solved my problem.
Related
this is the error its showing now
I was installing "Laravel" through a tutorial and now i am facing this error "zsh: locking failed for /users/vishnu.zsh_history: permission denied: reading anyway"
macos:- catalina v10.15
I am using macbook air,
I don't have any idea what happened it happened while I was installing composer and a file was missing to get that file I ran some "chown" command and now I cant even open my chrome browser
Please Help
-ThankYou
You can run this command :
sudo chown -R ${LOGNAME}:staff $HOME
to make sure the owner is correct for your files.
First, The other answer recommended here is specific to messing up the prefix in npm config, which I haven't done. So I don't think this is a duplicate of that question.
The specific error is EPERM: operation not permitted, rename '/Users/AppData/Roaming/npm/node-modules/create-react-app' -> '/Users/Appdata/Roaming/npm/node_modules/create-react-app.DELETE'
There are a lot of proposed solutions for this. Top ones appear to be:
Run cmd with Run as Administrator; tried this, didn't work.
clear the npm cache; tried this, didn't work. In fact, this command produced the same error. I didn't find any npm cache file in the APPDATA directory either.
I also tried running this via running the node.js command prompt as Admin. Same error.
Another suggestion is to turn off anti-virus, but that is not an option for me because this is a work/corporate provisioned PC running Windows 7.
I'm running node v6.11 and npm v 3.10.10
Any other suggestions?
I have a nativescript application in windows that deploys to the emulator just fine, but when I git clone onto the MacBook Pro and run the same process, I get:
new-host:nativescript jbaird$ tns run android
Searching for devices...
Starting Android emulator with image Nexus_5X_API_26
Waiting for emulator device initialization...
Executing before-liveSync hook from /Users/jbaird/Documents/development/gr8dates/Nativescript/hooks/before-liveSync/nativescript-angular-sync.js
Executing before-prepare hook from /Users/jbaird/Documents/development/gr8dates/Nativescript/hooks/before-prepare/nativescript-dev-typescript.js
Found peer TypeScript 2.4.2
Preparing project...
Project successfully prepared (Android)
Building project...
Unable to apply changes on device: emulator-5554. Error is: spawn EACCES.
Executing after-watch hook from /Users/jbaird/Documents/development/gr8dates/Nativescript/hooks/after-watch/nativescript-dev-typescript.js
Any ideas? Thanks in advance.
The error is a permission error. Therefore, all you need to do is give access to the the folder you are running your apps from. The process involves you to copy and paste the command below into your terminal.
sudo chmod -R a+rwx /AppFolder
The command is an administrator command, therefore, you may have to insert your system password.
PS: Definitely, you hit enter and there will be a prompt for you to insert your password.
Let me know if you have any challenges with this solution!
emulator-5554. Error is: spawn EACCES.emulator-5554. Error is: spawn EACCES.
Seems a permission error. You could solve it by:
sudo,
Or, by giving +x permision to your hooks folder?
I'm trying to Archive my project in xcode. When I press run everything working fine and I can test my app on my ios device. I'm using cordova for all things. Now when I want to Archive project I got some type of error message:
/Users/eUser/ui_app/cordova/platforms/ios/Pods/Target Support Files/Pods-project/Pods-project-resources.sh: line 7: /resources-to-copy-project.txt: Permission denied
Any solution for this?
I also faced exactly the same issue.
This works for me:
sudo chmod -R 755 Project-folder
I'm trying to run a program (e.g. "/Applications/Safari.app") from node using child_process.execFile but it fails with the error:
"Command failed: execvp(): Permission denied"
It works well on Ubuntu and Windows, but on MacOS this issue appears. Am I missing something?
/Applications/Safari.app is actually a directory (application bundle), not an executable file.
I think the simplest solution would be to use /Applications/Safari.app/Contents/MacOS/Safari instead.