How To Install nodejs-should on CentOS 7
Introduction
In this tutorial we learn how to install nodejs-should
on CentOS 7.
What is nodejs-should
should is an expressive, readable, test framework agnostic, behavior-driven development (BDD)-style assertion library for Node.js. It extends the Object prototype with a single non-enumerable getter that allows you to express how that object should behave. should literally extends Node’s assert module. For example, should.equal(str, ‘foo’) will work, just as assert.equal(str, ‘foo’) would, and should.AssertionError is assert.AssertionError, meaning any test framework supporting this constructor will function properly with should.
We can use yum
or dnf
to install nodejs-should
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install nodejs-should.
Install nodejs-should on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install nodejs-should
using yum
by running the following command:
Install nodejs-should on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf
using the following command.
After updating yum database, We can install nodejs-should
using dnf
by running the following command:
How To Uninstall nodejs-should on CentOS 7
To uninstall only the nodejs-should
package we can use the following command:
References
Summary
In this tutorial we learn how to install nodejs-should
on CentOS 7 using yum
and dnf
.