V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  TanninS  ›  全部回复第 1 页 / 共 1 页
回复总数  7
腾讯给 post 加了验证吧,同样的方法已经刷不上了
@lniwn
原来是这样,哈哈哈,我不知道这是个安装库的命令
成功了,感谢!
2018 年 1 月 2 日 12:34:11 提交成功
@lyf362345

我知道他 save 了,但是后面还是报错。你们都是无压力直接运行这个 js 的嘛?

Error: Cannot find module 'request'
at Function.Module._resolveFilename (module.js:555:15)
at Function.Module._load (module.js:482:25)
at Module.require (module.js:604:17)
at require (internal/module.js:11:18)
@satanandroid
老哥,安装完 node 和 npm 以后,就直接在终端输入
npm install crypto-js request-promise
node wx_t1t_hack.js
就可以了吗
@finab
重新 build path 以后好像没有变化?
该怎么操作呢
bogon:~ tannins$ export NODE_PATH=/usr/local/lib/node_modules/
bogon:~ tannins$ node wx_t1t_hack.js

###
### The "request" library is not installed automatically anymore.
### But required by "request-promise".
###
### npm install request --save
###

/Users/tannins/node_modules/request-promise/lib/rp.js:23
throw err;
^
老司机们,我已经安装好这两个包了
+ [email protected]
+ [email protected]

但是我在 macOS 终端输入 node wx_t1t_hack.js 以后出现这种情况是怎么回事呢

###
### The "request" library is not installed automatically anymore.
### But required by "request-promise".
###
### npm install request --save
###

/Users/tannins/node_modules/request-promise/lib/rp.js:23
throw err;
^
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1103 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 12ms · UTC 22:55 · PVG 06:55 · LAX 15:55 · JFK 18:55
Developed with CodeLauncher
♥ Do have faith in what you're doing.