Cypress Test Issue in debian - linux

I have installed Cypress in Debian. When I am trying to check its version or I am trying to execute any test cases then I am getting this error:
Command 'cypress' not found, did you mean:
command 'cmpress' from deb infernal (1.1.4-1)
Try: sudo apt install <deb name>

downgrade the cypress by running npm install cypress#7.6.0

Related

"g++: error: unrecognized command line option ‘-std=gnu++14’" with gcc version 9.3.0

I have the CentOS Linux release 7.9.2009 (Core) running in the VirtualBox, which was build by the Vagrant 2.2.19 and the Ansible 2.9.25 installed all the depedencies. On the machine there are installed:
gcc 9.3.0
python 3.6.8
node.js 16.13.1
npm 8.1.2
When the ansible executes the npm install I get errored with the g++: error: unrecognized command line option ‘-std=gnu++14’. I saw many questions here on the Stackoverflow, where the answers told me to upgrade the gcc to version >= 4.9. But I already have that and I'm still getting an error.
However, there is a workaround, which allows me to run the npm install:
sudo yum install -y centos-release-scl
sudo yum install -y devtoolset-9-gcc*
scl enable devtoolset-9 bash
npm install
but I have to run this manually, after I'm logged into the CentOS by the vagrant ssh. I'm not satisfied with this workaround because it is manual and the npm istall must be run programatically, hence it doesn't solve my problem.
I have tried to execute the npm install inside the scl from the ansible playbook.yml:
- name: Install centos-release-scl
shell: yum install -y centos-release-scl
become: yes
- name: Install devtoolset-9
shell: yum install -y devtoolset-9-gcc*
become: yes
- name: install packages based on package.json
shell: |
scl enable devtoolset-9 bash
npm install
become: yes
but it didn't work.
Is there a way how can I run the npm install programatically by the ansible without getting error?
You can stick with gcc 4.8.5 but downgrading to NodeJS 14 (as pointed out in https://github.com/systemd/node-sd-notify/issues/29#issuecomment-1040909033).
Note: You can download NodeJS 14 at https://github.com/nodesource/distributions/blob/master/README.md#enterprise-linux-based-distributions
For CentOS run this.
yum install gcc-c++
Then Install cmake.
yum install cmake
Then run.
yum install centos-release-scl
Install devtoolset.
yum install devtoolset-8-gcc devtoolset-8-gcc-c++
Enable devtoolset.
scl enable devtoolset-8 -- bash

Can not Install NPM along side with the ROS melodic?

I am using ROS melodic for my current project but I need to install nodejs for my college work in ubuntu 18.04. When I install nodejs by using the following commands
sudo apt install nodejs
sudo apt install npm
it gives me an error like this.
error
So I installed that dependency but after installing that dependency my ros packages removed. How can I install the npm without losing the ROS melodic?
Thanks in advance !!
I found something on the internet that take me to the solution,
I installed python virtual environment
https://linuxize.com/post/how-to-create-python-virtual-environments-on-ubuntu-18-04/
in that virtual environment I installed nodeenv with the help of pip
https://pypi.org/project/nodeenv/#id73
I created node.js virtual environment in which I installed the NPM without getting any error.
And we can also install nodeenv with the global environment too!
I faced the same problem and solutions were deleting whole ros melodic.
found the solution as follows:
$ sudo apt-get purge nodejs npm
after this command if you installed nodejs it's going to be deleted.
enable the NodeSource repository by running the following curl command:
$ curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
then:
$ sudo apt-get install -y nodejs
the nodejs package contains both the node and npm binaries.

Processmaker 4 Community Edition Installation

Require help to complete ProcessMaker4 installation process on a Centos 8 server. I currently stuck at 'npm run dev' step. There are error messages that I have no idea on how to fix it. Below are lines coppied from terminal.
Error during npm run dev
Please assist.
Thank you.
I had some troubles too.
I installed on Centos 7.7 and it works.
About npm, check you have installed NodeJS 10.x, mine is version 10.21.
To install it:
curl -sL https://rpm.nodesource.com/setup_10.x | bash -
yum install -y nodejs
This will install npm as well which in my case:
npm --version
6.14.1

Can't install azure cli on centos

I am trying to install azure-cli on centos 7 box. I am getting this error repeatedly
Error: Package: azure-cli-2.0.80-1.el7.x86_64 (azure-cli)
Requires: libpython3.6m.so.1.0()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
I tried to execute both commands but none of these worked for me.
Acturally, Azure CLI requires python3, it's even an executable Python package azure-cli which you can find in PyPI.org. So please make sure there is a Python 3 runtime installed in your CentOS 7.
If you want to fix your issue manually, you can try to download and install the related rpm package for Libpython3.6m.so.1.0()(64bit) from https://pkgs.org/download/libpython3.6m.so.1.0()(64bit), as the figure below.
However, the best way is to follow the offical tutorial Install Azure CLI with yum to install it in CentOS 7.
Otherwise, the other solution is as below to directly install its python package via pip.
Please check whether the Python 3 runtime had been installed in CentOS 7 via command python3 -V or python -V to see the Python version or system will remind you to install it.
Please check whether the pip or pip3 command for Python 3 runtime had been installed via pip3 -V or pip -V to see the pip version or system will remind you to install it.
Completed the two steps above, you can easily to install azure-cli via command sudo pip3 install azure-cli or sudo pip install azure-cli, it will help to install azure-cli to the system path, then you can try to use it via az --version.
You can install it by mentioning the repo/package URL
sudo yum install https://packages.microsoft.com/yumrepos/azure-cli/azure-cli-2.38.0-1.el7.x86_64.rpm
packages can be found here https://packages.microsoft.com/yumrepos/azure-cli/

Installing RPostgreSQL on Linux

When I try on linux in R
install.packages('RPostgreSQL')
it fails with unspecified errors:
Warning message:
In install.packages("RPostgreSQL") :
installation of package ‘RPostgreSQL’ had non-zero exit status
I tried to solve problem with:
sudo apt-get install postgresql-server-dev-8.4 for postgresql version 8.4.
but it doesn't seems to work.
sudo: apt-get: command not found
I have PostgreSQL 9.1.11 version.
Read the configure log.
You most likely "merely" forgot to read the README and DESCRIPTION and other documentation telling you to do
sudo apt-get install libpq-dev
We develop this on, inter alia, Debian/Ubuntu systems so can be more than sure that it works there.

Resources