Protractor - error when starting on Ubuntu 14.04 - angularjs

I'm trying to set up Protractor on Ubuntu 14.04 LTS and I'm getting the following error on this command:
> sudo webdriver-manager start
The error is:
seleniumProcess.pid: 52352
events.js:72
throw er; // Unhandled 'error' event
^
Error: spawn ENOENT
at errnoException (child_process.js:1001:11)
at Process.ChildProcess._handle.onexit (child_process.js:792:34)
Results of webdriver-manager status:
selenium standalone is up to date
chromedriver is up to date
IEDriver is not present
JDK looks to be installed already (java --version):
The program 'java' can be found in the following packages:
* default-jre
* gcj-4.8-jre-headless
* openjdk-7-jre-headless
* gcj-4.6-jre-headless
* openjdk-6-jre-headless
Try: sudo apt-get install <selected package>
Any ideas?

Ensure java is installed:
sudo apt-get install openjdk-7-jre-headless
Dealing with webdriver-manager doesn't require sudo:
webdriver-manager start

Related

LWT installation failed using OPAM

LWT installation failed using OPAM on Ubuntu
Server Information -
Distributor ID: Ubuntu,
Description: Ubuntu 18.04.4,
LTS Release: 18.04,
Codename: bionic
Steps I followed -
opam list -a # List the available packages
opam install lwt # Install LWT
opam update # Update the package list
...
opam upgrade # Upgrade the installed packages to their latest version
Error I got -
=-=- Error report -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
The following actions were aborted
∗ install lwt 4.1.0
∗ install ocamlfind 1.8.0
The following actions failed
∗ install conf-m4 1
No changes have been performed
I even tried opam depext conf-m4.1 but didn't help.
After following these -
opam depext conf-m4.1
sudo opam install lwt
the problem is solved - but sudo is not recommended.

pip3 installation error - new ubuntu 18.04 installation

I'm rebuilding after a crash & subsequent upgrade to Ubuntu 18.04 LTS. Everything seems to be back to normal except for Python's pkg manager.
Below is launched by:
$sudo apt update
$sudo apt install python3-pip
The logs at first say that python3-pip is already installed:
python3-pip is already the newest version (9.0.1-2.3~ubuntu1.18.04.1).
Then the installation apparently bombs as shown:
dpkg: error processing package libclojure-java (--configure):
dpkg: dependency problems prevent configuration of librobert-hooke-clojure:
dpkg: error processing package librobert-hooke-clojure (--configure):
Also at the bottom of the error message:
E: Sub-process /usr/bin/dpkg returned an error code (1)
I understand dpkg is the Debian pkg manager but I am unsure of the best next step.
do you try to missing package by this command
sudo apt-get install -f
and then for update missing try
sudo apt-get update --fix-missing
and for upgrade missing package
sudo apt-get upgrade --fix-missing

Why am i getting ENOENT errors while starting my development server?

I created a react app with yarn. It showed me ENOENT errors while starting the development server.
C:Users\Dera\reactprojects\rcipe\yarn start
yarn run v1.12.3
warning ..\package.json: No license field
$ react-scripts start
Starting the development server...
events.js:173
throw er; //Unhandled 'error' event
^
Error: spawn cmd ENOENT
at Process.ChildProcess._handle.one exit``
For me, it worked by installing a previous version of npm-scripts.
Try using:
npm install react-scripts#2.1.8

npm test error for create-react-app

I'm getting this error when I run npm run test for a create-react-app application for the sample test provided. I tried looking for the EMFILE error but I'm unable to understand what's going wrong.
Error: Error watching file for changes: EMFILE
at exports._errnoException (util.js:1022:11)
at FSEvent.FSWatcher._handle.onchange (fs.js:1406:11)
I had the same issue and discovered watchman was not installed.
Run brew install watchman.
Issue is happening since watchman is not installed on your system.
On Linux, you need to do following
Install Watchman using following commands
git clone https://github.com/facebook/watchman.git
cd watchman/
git checkout v4.9.0
sudo apt-get install -y autoconf automake build-essential python-dev libssl-dev libtool
./autogen.sh
./configure
make
sudo make install
Execute tests
sudo npm test

MacPorts is not installing

I am getting error while installing macports using this command
sudo port install dpkg
Error: -bash: port: command not found
I am installing theos (ref http://brandontreb.com/beginning-jailbroken-ios-development-getting-the-tools/) , OS is MoutainLion and xCode is 4.5

Resources