There are two ways you normally install a program
npm install <package-name>
For the first method, you need the name of a package, normally found in the official npm site. This is normally used when you are creating your own App. And it requires you previously run
npm init or
npm init -y if you’re starting with npm. (this step creates a
The second method is useful when you’re using someone else’s app. In this case there must be a
package.json in the folder.
You have an App, you
cd into the folder, let’s say:
- List the storage
ls . or just
ls and there must be a
package.json otherwise it will return an error, as you are getting there.
- if there is, you can run
Hope that helps you get started.