:\ruishu>node cipher.js
nternal/modules/cjs/loader.js:985
throw err;
^
rror: Cannot find module 'crypto-js'
equire stack:
D:\ruishu\cipher.js
[90m at Function.Module._resolveFilename (internal/modules/cj
15)[39m
[90m at Function.Module._load (internal/modules/cjs/loader.js
[90m at Module.require (internal/modules/cjs/loader.js:1044:1
[90m at require (internal/modules/cjs/helpers.js:77:18)[39m
at Object.<anonymous> (D:\ruishu\cipher.js:1:16)
[90m at Module._compile (internal/modules/cjs/loader.js:1158:
[90m at Object.Module._extensions..js (internal/modules/cjs/l
)[39m
[90m at Module.load (internal/modules/cjs/loader.js:1002:32)
[90m at Function.Module._load (internal/modules/cjs/loader.js
[90m at Function.executeUserEntryPoint [as runMain] (internal
n.js:74:12)[39m {
code: [32m'MODULE_NOT_FOUND'[39m,

node
中使用crypto
是不需要npm
装的。可以看到他已经是自带的模块了