How to run expressJS CLI from local installation

Oskar Szura

I've a question regarding ExpressJS local installation (I'm aware of the global usage but it's not the case for me right now).

I've a the following project:

/my-project
    |- package.json (express included)
    |- node_modules (express installed)
    |- app.js  

now I can use expressJS within the app.js module but, how can I use it's CLI?

Mukesh Soni

You can still install the global version too. They will be installed in different locations.

Or you can invoke the local one in your directory -

./node_modules/express/bin/express

Edit: The above is not the case with latest versions. It is true in the one i have installed (3.4.8).

Seems in the latest version (4.0.0) they have separated the app generator from express core.

If you want to install the generator locally too, do

npm install express-generator

And then

./node_modules/express-generator/bin/express

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Run AWS CLI from java

How to run angular-cli from Vagrant box?

Magento 2: How to run CLI command from another CLI command class?

How to run Flask CLI from within PyCharm under Windows

How to run hive script from hive cli

How to run ganache-cli from Vagrant box?

How to Avoid throwing 400 errors from ExpressJS

How to run Yii console app from Ubuntu CLI?

How to run an interactive CLI program from within Clojure?

Cannot determine versions of "@angular/cli" local installation is broken

How do you run micronaut from gradle with local properties

How to run a Scio pipeline on Dataflow from SBT (local)

How can I run Azure CLI commands against my local CosmosDB Emulator?

How to run Angular CLI commands from code

How can I run command in virtual machine from a local user?

How to return an error back to ExpressJS from middleware?

How to run deluge from CLI?

How can I run Javascript from a local folder?

how to open CLI during installation

How to run a flask app on a remote server from a local system?

How can I get my current symfony installation run on a local server?

how to run CLI from root with user hdfs

How to run laravel program at CLI?

sublime text installation, and how to run it

How to get MQ CLI commands to run against a single MQ installation?

How to run vscode on local machine after cloning from GitHub repository

How to copy a file from local to Dockerfile to run in the build id

How to run BlocObserver example in cli

Can not read data from local MongoDB using expressjs mongoose library