Installing express js

23 views
Skip to first unread message

Elad Rosenberg

unread,
Jun 25, 2015, 10:27:48 AM6/25/15
to nod...@googlegroups.com
Why im getting error about friendly url? attached.
thanks in advance
2015-06-25_125516.png

Ryan Schmidt

unread,
Jun 25, 2015, 12:27:18 PM6/25/15
to nod...@googlegroups.com
On Jun 25, 2015, at 04:56, Elad Rosenberg wrote:
>
> Why im getting error about friendly url? attached.

You ran "npm init", indicating you would like to be guided through the process of creating a package.json file for a new project in the current directory. npm printed message explaining that, and then printed a few more lines telling you about other commands you can run after this setup is complete.

Then npm asked you the first question in the setup process: what name would you like to give this new project? It suggested the name "myapp" because that is the name of the current directory. You could accept that default by pressing Enter, or type a different name. You typed the name "npm instal express --save", which is not a valid name because it contains characters that are not allowed in a URL. (Specifically, spaces are not allowed in URLs.)

If you want to be guided through the process of setting up a package.json file, answer each question "npm init" asks. If you want to cancel instead, press ^C (Control-C).

Reply all
Reply to author
Forward
0 new messages