我安装了模块mongoskin
(sudo npm install mongoskin -g
)-成功安装。
当我尝试从index.js
( supervisor index.js
) 开始时,出现以下错误:
module.js:340
throw err;
^
Error: Cannot find module 'mongoskin'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (/Users/smithua/Documents/uezo.pro/dnode-node/im.js:5:13)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
DEBUG: Program node index.js exited with code 8
ls -la /usr/local/lib/node_modules/
:
0 drwxr-xr-x 14 smithua staff 476 Jul 30 18:53 dnode
0 drwxr-xr-x 7 smithua staff 238 Jul 31 11:40 jshint
0 drwxr-xr-x 10 smithua staff 340 Jul 31 11:00 jslint
0 drwxr-xr-x 17 smithua staff 578 Aug 12 16:48 mongoskin
0 drwxr-xr-x 15 smithua staff 510 Jul 30 16:40 mysql
0 drwxr-xr-x 20 smithua staff 680 Jul 31 11:09 npm
0 drwxr-xr-x 19 smithua staff 646 Jul 31 03:56 promised-io
0 drwxr-xr-x 6 smithua staff 204 Jul 30 16:40 supervisor