javascript - Express module not available -


i installed express module using npm , -g option. command shows in bash browser in node terminal, shows error.

require.resolve('express') error: cannot find module 'express'     @ function.module._resolvefilename (module.js:339:15)     @ function.require.resolve (internal/module.js:23:19)     @ repl:1:9     @ replserver.defaulteval (repl.js:252:27)     @ bound (domain.js:287:14)     @ replserver.runbound [as eval] (domain.js:300:12)     @ replserver.<anonymous> (repl.js:417:12)     @ emitone (events.js:95:20)     @ replserver.emit (events.js:182:7)     @ replserver.interface._online (readline.js:211:10) 

what doing wrong? installed express-generator still wouldn't do

my .bashrc file has these entries:

export path="$home/.linuxbrew/bin:$path" export manpath="$home/.linuxbrew/share/man:$manpath" export infopath="$home/.linuxbrew/share/info:$infopath" 

run command in directory have placed package.json

npm install express --save 

Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

json - Gson().fromJson(jsonResult, Myobject.class) return values in 0's -