ok, it's first time happens me npm
:
i've installed node-uuid
locally: npm install --save node-uuid
but when try import error:
> require('node-uuid') error: cannot find module 'node-uuid' @ function.module._resolvefilename (module.js:327:15) @ function.module._load (module.js:278:25) @ module.require (module.js:355:17) @ require (internal/module.js:13:17) @ repl:1:1 @ replserver.defaulteval (repl.js:252:27) @ bound (domain.js:281:14) @ replserver.runbound [as eval] (domain.js:294:12) @ replserver.<anonymous> (repl.js:417:12) @ emitone (events.js:83:20)
but if import module manually works:
> require('./node_modules/node-uuid') { [function: v4] v1: [function: v1], v4: [circular], ...
both commands executed on same node.js shell on same folder.
how can possible? suggestion?
complete output:
amatiasq:~/repos/test$ ls node_modules/ node-uuid amatiasq:~/repos/test$ node > require('./node_modules/node-uuid') { [function: v4] v1: [function: v1], v4: [circular], parse: [function: parse], unparse: [function: unparse], bufferclass: { [function: buffer] poolsize: 8192, isbuffer: [function: isbuffer], compare: [function: compare], isencoding: [function], concat: [function], bytelength: [function: bytelength] }, _rng: [function], _mathrng: undefined, _noderng: [function], _whatwgrng: undefined } > require('node-uuid') error: cannot find module 'node-uuid' @ function.module._resolvefilename (module.js:327:15) @ function.module._load (module.js:278:25) @ module.require (module.js:355:17) @ require (internal/module.js:13:17) @ repl:1:1 @ replserver.defaulteval (repl.js:252:27) @ bound (domain.js:281:14) @ replserver.runbound [as eval] (domain.js:294:12) @ replserver.<anonymous> (repl.js:417:12) @ emitone (events.js:83:20) >
this issue on repl node 5.2.0 fixed on 5.3.0.
based on that, obvious suggestion upgrade 5.3, proper care , attention notable changes.
Comments
Post a Comment