Cant install express on Windows - node.js

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

Related

nvm-windows: not able to run globally installed software

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

'express' is not executable

This is quite basic. Many examples show terminal commands such as: 'express name-of-directory-to-be-created'. Yet on my system, though I've installed node.js (and command: node -v works, and npm -v works), command: express fails with: command not found Further investigation shows that, on my macbook air, all incidences of express.js are not executable. I believe express was installed using npm express or npm -g express. Please, what is going on? Are the examples correct? ( There are several, all from various sources. ) How may I execute
express directory
Thanks in advance.
This usually happens on windows.
You need to install express globally and the location where npm modules get installed should be added to PATH(environment variable).
To install express globally type npm install -g express
Also it looks like you are trying to use express-generator.If yes you should install it similarly.
npm install -g express-generator
In windows by default npm modules are installed at "C:\Users\u_name\AppData\Roaming\npm"
Edit your PATH environment variable and append your npm path at the end.

Setting up node.js on Ubuntu 12.04 (with eclipse/nodeclipse/enide)

I'm trying to set up node.js on my Ubuntu 12.04 machine. I want to be able to use it through Eclipse but the process seems confusing.
So far what I have done.
Installed node.js. Shows v5.8.0 on running 'node -v'
Installed npm. Shows 3.7.3 on running 'npm -v'
Installed Express using 'npm install -g express'
Added this to my .bashrc file (I've installed node in ~/node)
export PATH=$HOME/node/bin:$PATH
export NODE_PATH=$HOME/node/lib/node_modules
I'm confused about what to do next. I installed Enide Studio 2015 through Eclipse Marketplace.
Switched to the Node perspective.
Created a new Node.js Express Project
But now I don't see the node project structure.
I also get a bunch of errors like:
- Node.js executable can't be found
What am I doing wrong, or what have I not done?
Alternatively, I installed the linux version of enide from here: http://www.nodeclipse.org/
This contains an eclipse file, but on trying to open the eclipse file it says "there is no application installed for executable files". That's strange because my regular install of eclipse opens just fine. Also I'm running a 32 bit system so I've ensured the files are 32 bit, not 64 bit.
Please help!
if you have node and npm working do the following:
Install express generator:
sudo npm install express-generator -g
Read the documentation about the express generator at http://expressjs.com/en/starter/generator.html
Create an express application:
express myapp
Install dependencies:
cd myapp
npm install
Run the application:
npm start
or
node ./bin/www
Open you browser and navigate to http://localhost:3000
Ok figured it out. I had to set up the node.js path in Eclipse under Preferences>Nodeclipse.

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.

Can't generate scaffolding with Yeoman

I'm following this tutorial to scaffold an application with generators (webapp and angular). I can install all dependencies and generators but when I run the commands yo webapp or yo angular I don't get any output feedback and when I run ls nothing was generated. When I diplay the npm installed packages with npm -g list I can see yo, bower and grunt packages are installed.
I'm using Ubuntu 13.04 64 bits and npm, yo, bower and grunt are installed in the usr/lib/node_module directory. I've checked some posts and questions about possible installation/directory problems but I can really get what's the real problem. Did I miss something during the instalation?
UPDATE
I tried installing all in Windows 7 and it works. So I think there are installation problems on Ubuntu, but I can't still figure out how to fix that.
You installed node, the Amateur Packet Radio Node program, instead of nodejs.
Run apt-get remove node && apt-get install nodejs and everything will be fine.

Resources