node.js - Installing MongoExpress with npm -


i have hit error when running 'npm install ­-g mongo­express' on windows 10.

c:\>npm install ­g mongo­express npm err! addlocal not install c:\­g npm err! addlocal not install c:\mongo­express npm err! windows_nt 10.0.10240 npm err! argv "c:\\program files (x86)\\nodejs\\node.exe" "c:\\users\\daniel\\appdata\\roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "­g" "mongo­express" npm err! node v4.0.0 npm err! npm  v3.3.3 npm err! path c:\­g npm err! code enoent npm err! errno -4058 npm err! syscall open  npm err! enoent enoent: no such file or directory, open 'c:\­g' npm err! enoent not problem npm npm err! enoent , related npm not being able find file. npm err! enoent  npm err! please include following file support request: npm err!     c:\npm-debug.log 

the contents of 'c:\npm-debug.log' are:

0 info worked if ends ok 1 verbose cli [ 'c:\\program files (x86)\\nodejs\\node.exe', 1 verbose cli   'c:\\users\\daniel\\appdata\\roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js', 1 verbose cli   'install', 1 verbose cli   '­g', 1 verbose cli   'mongo­express' ] 2 info using npm@3.3.3 3 info using node@v4.0.0 4 silly loadcurrenttree starting 5 silly install loadcurrenttree 6 silly install readlocalpackagedata 7 silly fetchpackagemetadata ­g 8 silly fetchpackagemetadata mongo­express 9 silly fetchotherpackagedata ­g 10 silly cache add args [ '­g', null ] 11 verbose cache add spec ­g 12 silly fetchotherpackagedata mongo­express 13 silly cache add args [ 'mongo­express', null ] 14 verbose cache add spec mongo­express 15 silly cache add parsed spec result { 15 silly cache add   raw: '­g', 15 silly cache add   scope: null, 15 silly cache add   name: null, 15 silly cache add   rawspec: '­g', 15 silly cache add   spec: 'c:\\­g', 15 silly cache add   type: 'local' } 16 silly cache add parsed spec result { 16 silly cache add   raw: 'mongo­express', 16 silly cache add   scope: null, 16 silly cache add   name: null, 16 silly cache add   rawspec: 'mongo­express', 16 silly cache add   spec: 'c:\\mongo­express', 16 silly cache add   type: 'local' } 17 error addlocal not install c:\­g 18 silly fetchpackagemetadata error: enoent: no such file or directory, open 'c:\­g' 18 silly fetchpackagemetadata     @ error (native) 18 silly fetchpackagemetadata  error ­g { [error: enoent: no such file or directory, open 'c:\­g'] errno: -4058, code: 'enoent', syscall: 'open', path: 'c:\\­g' } 19 error addlocal not install c:\mongo­express 20 silly fetchpackagemetadata error: enoent: no such file or directory, open 'c:\mongo­express' 20 silly fetchpackagemetadata     @ error (native) 20 silly fetchpackagemetadata  error mongo­express { [error: enoent: no such file or directory, open 'c:\mongo­express'] 20 silly fetchpackagemetadata   errno: -4058, 20 silly fetchpackagemetadata   code: 'enoent', 20 silly fetchpackagemetadata   syscall: 'open', 20 silly fetchpackagemetadata   path: 'c:\\mongo­express' } 21 silly rollbackfailedoptional starting 22 silly rollbackfailedoptional finishing 23 silly runtoplevellifecycles starting 24 silly runtoplevellifecycles finishing 25 silly install printinstalled 26 verbose stack error: enoent: no such file or directory, open 'c:\­g' 26 verbose stack     @ error (native) 27 verbose cwd c:\ 28 error windows_nt 10.0.10240 29 error argv "c:\\program files (x86)\\nodejs\\node.exe" "c:\\users\\daniel\\appdata\\roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "­g" "mongo­express" 30 error node v4.0.0 31 error npm  v3.3.3 32 error path c:\­g 33 error code enoent 34 error errno -4058 35 error syscall open 36 error enoent enoent: no such file or directory, open 'c:\­g' 36 error enoent not problem npm 36 error enoent , related npm not being able find file. 37 verbose exit [ -4058, true ] 

it appears node taking -g parameter file name install express into? understanding makes express globally accessible. variations command run similar problems. have since ran problem attempting install other modules.

link mongo-express's node install site: https://www.npmjs.com/package/express-mongodb

could give me hand?

try:

npm install -g mongoexpress 

the g command line flag. command you're running saying "install module g , module mongoexpress" instead of "install mongoexpress globally".


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -