How to install express in ubuntu through npm?

0

When I try to install Express in Ubuntu with the command npm install express , this error occurs:

npm WARN enoent ENOENT: no such file or directory, open '/home/flavio/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/home/flavio/node_modules/nodejsSchoolOfNet/package.json'
npm WARN flavio No description
npm WARN flavio No repository field.
npm WARN flavio No README data
npm WARN flavio No license field.
    
asked by anonymous 09.05.2017 / 20:30

1 answer

1

First create a new project using the "npm init" command. This will create a file named "package.json" in your folder. Then use the command "npm install express --save" (" - save " if you want to save express as a dependency of your project).

    
01.03.2018 / 20:00