NODE.JS – 无法找到模块 ‘@hapi/boom’

huangapple go评论104阅读模式
英文:

NODE.JS - Cannot find module '@hapi/boom'

问题

以下是翻译的内容:

我被要求创建一个超级简单的聊天机器人。我不是开发人员,以前从未使用过node.js。我在GitHub上找到了这个简单的示例。我首先按照主页上的说明运行了 npm install rcs-maap-bot,然后粘贴了代码,运行了起来,但是出现了这个错误。在线研究说要移动它缺失的 index.js,所以我将它复制到了上一级目录,现在出现了这个错误:https://i.stack.imgur.com/4nVj3.png

我无法解决这个问题。

有谁知道出了什么问题吗?非常感谢。

英文:

I've been asked to create a super simple chatbot. I'm not a developer and I've never used node.js before. I found this simple demo on GitHub. I first ran npm install rcs-maap-bot as the main page says, pasted the code, ran it and I get this error. Online research said to move its missing index.js so I moved copied it a directory back and now I get this error: https://i.stack.imgur.com/4nVj3.png

I wasn't able to resolve it.

Does anyone know what's going on? Huge thanks ahead.

答案1

得分: 1

你需要使用 Maap,前提是你在 node_modules 中已经安装了它,用以下代码替换:

const Maap = require('rcs-maap-bot')
英文:

You need Maap, provided that you have it on node_modules, replacing

const Maap = require('../')

wit this line should work:

const Maap = require('rcs-maap-bot')

huangapple
  • 本文由 发表于 2020年8月20日 18:36:39
  • 转载请务必保留本文链接:https://go.coder-hub.com/63503251.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定