Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR Error loading scripts from npm package - TypeError: require(...) is not a function #8

Open
xsunnydong opened this issue May 24, 2022 · 1 comment

Comments

@xsunnydong
Copy link

hubot@7b6192d48514:~$ ./bin/hubot -a dingtalk
up to date in 0.492s

7 packages are looking for funding
run npm fund for details

[Tue May 24 2022 01:48:44 GMT+0000 (Coordinated Universal Time)] INFO Constructor
[Tue May 24 2022 01:48:44 GMT+0000 (Coordinated Universal Time)] INFO Run
[Tue May 24 2022 01:48:44 GMT+0000 (Coordinated Universal Time)] ERROR Error loading scripts from npm package - TypeError: require(...) is not a function
at /home/hubot/node_modules/hubot/src/robot.js:409:52
at Array.forEach (:null:null)
at Robot.loadExternalScripts (/home/hubot/node_modules/hubot/src/robot.js:409:25)
at /home/hubot/node_modules/hubot/bin/hubot.js:207:13
at FSReqCallback.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:63:3)
安装方式:npm install
hubot-dingtalk版本:1.5.0
nodejs版本:v12.22.12
npm版本:6.14.16
hubot版本:3.3.2
大佬好,初学HUBOT 使用此dingtalk适配器报错

@zhangrr
Copy link

zhangrr commented Mar 1, 2023

https://bajie.dev/posts/20230301-hubot_dingding/

试试这个教程

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants