nvm-windows: not able to run globally installed software - node.js

I have installed different version of node using nvm on windows 7.
Currently I am using node v8.0.0. I installed express globally
npm install -g express
But when I try to create a new app using express testapp, I get the
following error message:
'express' is not recognized as an internal or extenal command.
This problem is with all the globally installed node modules.

got it! I have to install express-generator and then give the express command

Related

Cant install express on Windows

I have been trying to install express dependencies for a few hours now and can't seem to get it working. I used the express generator downloaded with npm install express-generator -g and get an error related to privileges. I have tried running everything I can think of as admin but without luck. I installed node and express on the Windows subsystem Linux with the same error.
log

Installing npm packages in Webstorm 2017.1.3 / Ubuntu 16.04 LTS

When trying to create a new "Node.js Express App" in WebStorm 2017.1.3. / on Ubuntu 16.04 LTS. I get the following error: Please specify npm or yarn package.
So I installed the package globally using
$ sudo npm install -g express
and restarted WebStorm but still no luck.
I then tried the suggestions made in this thread: WebStorm - error: Please specify npm package. Again no luck.
I went on and tried to install the package using WebStorm, but still get the same error message:
Any ideas how I can get this running?
Starting with Express version 4, you should install express-generator.
npm install express-generator -g
More information on using express-generator

Express module install

I am trying to install express module install, but the issue is that after installation I am still unable to use express.
What I've done:
Install express using cmd - npm install -g express
For some reason it's not installing globally.
Help?
You might want to use the following:
npm install -g express-generator
Source: Issues with installing Express.JS in Windows 7
In later versions of express comand line was migrated to a separate module: express-generetor
use
npm install -g express-generator#3
and could use the express command

express not installed on my machine

I downloaded node.js onto my linux fedora core 18 machine.
After that using npm -g install express installed express. The problem is I am unable to find the express file to be supplied to Nodeclipse in the preference.
Hence, my application using express is not able to compile saying express not found.
Am I missing anything here?
try installing it with this command and see if it works:
npm install -g express
then go to cd myapp
npm link express
this could do the trick..
Nodeclipse is using express executable only for wizard. Everything else works as for node.js from command line (try node myapp.js)
As advised by #isaacs in Express module not found when installed with NPM, do npm install express for local project folder.

node.js: can't install express properly

I'm having trounble with installing express. After I do npm install express, express is still not visible. I.e. I'm unable to do express appname. I'm running Win7. What is done incorrectly?
UPD. I'm following this tutorial
since express 4.0 the CLI tools are not part of the main express package anymore. if you want to have the generator you have to install it separately:
npm install -g express-generator
see here
If you want to run the :
express appname
command, you should install express the following way :
sudo npm install -g express
or just:
npm install -g express
if you are not on a UNIX system. Otherwise if you already did an :
npm install express
you can run this command:
./node_modules/express/bin/express appname
from your project's root directory.

Resources