Closed
Description
I am no longer able to get Botpress to run. In order to submit PR botpress/botpress#309 using async
/ await
, I updated nodejs. Previously, I had a much older version.
- Now, I can create a new bot: 'bp init bot-name`
- I can start the bot:
bp start
But is I try to install botpress-messenger
or botpress-slack
, I get the sqlite3 error
see #120
foo-bot>bp install botpress-messenger
[botpress] please wait, we are trying to install your new modules...
[botpress] Installing modules: botpress-messenger
[botpress] ERR npm
[botpress] ERR WARN [email protected] requires a peer of botpress@>= 0.1 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of [email protected] but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of [email protected] but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of react@* but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] No description
npm WARN [email protected] No repository field.
npm WARN [email protected] license should be a valid SPDX license expression
[botpress] ERR npm ERR! path c:\projects\foo-bot\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\mkdirp\node_modules\minimist
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename 'c:\projects\foo-bot\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\mkdirp\node_modules\minimist' -> 'c:\projects\foo-bot\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\mkdirp\node_modules\.minimist.DELETE'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
[botpress] ERR
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\me\AppData\Roaming\npm-cache\_logs\2017-12-20T00_01_18_935Z-debug.log
[botpress] ERR An error occurred during modules installation.
Unhandled rejection undefined
At this point, nothing works. I can't run bp start
foo-bot>bp start
[botpress] ERR Cannot find module 'c:\projects\foo-bot\node_modules\botpress'
[botpress] ERR Error: Cannot find module 'c:\projects\foo-bot\node_modules\botpress'
at Function.Module._resolveFilename (module.js:470:15)
at Function.Module._load (module.js:418:25)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Command.module.exports.module.exports (C:\Users\me\AppData\Roaming\npm\node_modules\botpress\lib\node.bundle.js:1863:31)
at Command.listener (C:\Users\me\AppData\Roaming\npm\node_modules\botpress\node_modules\commander\index.js:315:8)
at emitTwo (events.js:106:13)
at Command.emit (events.js:194:7)
at Command.parseArgs (C:\Users\me\AppData\Roaming\npm\node_modules\botpress\node_modules\commander\index.js:653:12)
at Command.parse (C:\Users\me\AppData\Roaming\npm\node_modules\botpress\node_modules\commander\index.js:475:21)
at Object.<anonymous> (C:\Users\me\AppData\Roaming\npm\node_modules\botpress\lib\node.bundle.js:1613:120)
at __webpack_require__ (C:\Users\me\AppData\Roaming\npm\node_modules\botpress\lib\node.bundle.js:21:30)
at Object.CLI (C:\Users\me\AppData\Roaming\npm\node_modules\botpress\lib\node.bundle.js:1541:10)
at Object.<anonymous> (C:\Users\me\AppData\Roaming\npm\node_modules\botpress\bin\botpress:3:34)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
[botpress] ERR (fatal) Could not load the local version of botpress
[botpress] Hint: 1) have you used `botpress init` to create a new bot the proper way?
[botpress] Hint: 2) Do you have read and write permissions on the current directory?
[botpress] -------------
[botpress] If none of the above works, this might be a bug in botpress. Please contact the Botpress Team on gitter and provide the printed error above.
The root of this appears to be related to sqlite3, but it is an issue for botpress, so I think we need to find a fix. It is looking like a show stopper for me.
I completely uninstalled node and tried a couple of different installs, but I am getting the same issues.
- OS: Windows 10
- Check that you are using node version >=
7.10.1
and8.9.3
- Search the documentation
Please also fill in these fields:
Botpress version: 1.1.10
Metadata
Metadata
Assignees
Labels
No labels