botpress / v12

Botpress OSS – v12
https://v12.botpress.com
GNU Affero General Public License v3.0
71 stars 83 forks source link

Can't install botpress #250

Closed aaronorellana closed 6 years ago

aaronorellana commented 6 years ago

Make sure these checkboxes are checked before raising an issue, thank you!

Please also fill in these fields:

npm WARN deprecated email-templates@2.7.1: 📫 Please upgrade to v3.5.0+ of email-templates to get email previews in your browser in development environment https://goo.gl/Amu9sh npm WARN deprecated nodemailer@2.7.2: All versions below 4.0.1 of Nodemailer are deprecated. See https://nodemailer.com/status/ npm WARN deprecated mailcomposer@4.0.1: This project is unmaintained npm WARN deprecated socks@1.1.9: If using 2.x branch, please upgrade to at least 2.1.6 to avoid a serious bug with socket data flow and an import issue introduced in 2.1.0 npm WARN deprecated buildmail@4.0.1: This project is unmaintained /usr/local/bin/botpress -> /usr/local/lib/node_modules/botpress/bin/botpress /usr/local/bin/bp -> /usr/local/lib/node_modules/botpress/bin/botpress

fsevents@1.1.3 install /usr/local/lib/node_modules/botpress/node_modules/fsevents node install

[fsevents] Success: "/usr/local/lib/node_modules/botpress/node_modules/fsevents/lib/binding/Release/node-v57-darwin-x64/fse.node"already installed Pass --update-binary to reinstall or --build-from-source to recompile

sqlite3@3.1.13 install /usr/local/lib/node_modules/botpress/node_modules/sqlite3 node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! Tried to download(undefined): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.13/node-v57-darwin-x64.tar.gz node-pre-gyp ERR! Pre-built binaries not found for sqlite3@3.1.13 and node@8.9.4 (node-v57 ABI) (falling back to source compile with node-gyp) gyp ERR! configure error gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/botpress/node_modules/sqlite3/build' gyp ERR! System Darwin 17.2.0 gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/usr/local/lib/node_modules/botpress/node_modules/sqlite3/lib/binding/node-v57-darwin-x64/node_sqlite3.node" "--module_name=node_sqlite3" "--module_path=/usr/local/lib/node_modules/botpress/node_modules/sqlite3/lib/binding/node-v57-darwin-x64" gyp ERR! cwd /usr/local/lib/node_modules/botpress/node_modules/sqlite3 gyp ERR! node -v v8.9.4 gyp ERR! node-gyp -v v3.6.2 gyp ERR! not ok node-pre-gyp ERR! build error node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/usr/local/lib/node_modules/botpress/node_modules/sqlite3/lib/binding/node-v57-darwin-x64/node_sqlite3.node --module_name=node_sqlite3 --module_path=/usr/local/lib/node_modules/botpress/node_modules/sqlite3/lib/binding/node-v57-darwin-x64' (1) node-pre-gyp ERR! stack at ChildProcess. (/usr/local/lib/node_modules/botpress/node_modules/sqlite3/node_modules/node-pre-gyp/lib/util/compile.js:83:29) node-pre-gyp ERR! stack at emitTwo (events.js:126:13) node-pre-gyp ERR! stack at ChildProcess.emit (events.js:214:7) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:925:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5) node-pre-gyp ERR! System Darwin 17.2.0 node-pre-gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/botpress/node_modules/sqlite3/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" node-pre-gyp ERR! cwd /usr/local/lib/node_modules/botpress/node_modules/sqlite3 node-pre-gyp ERR! node -v v8.9.4 node-pre-gyp ERR! node-pre-gyp -v v0.6.38 node-pre-gyp ERR! not ok Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/usr/local/lib/node_modules/botpress/node_modules/sqlite3/lib/binding/node-v57-darwin-x64/node_sqlite3.node --module_name=node_sqlite3 --module_path=/usr/local/lib/node_modules/botpress/node_modules/sqlite3/lib/binding/node-v57-darwin-x64' (1) npm WARN react-codemirror@1.0.0 requires a peer of react@>=15.5 <16 but none is installed. You must install peer dependencies yourself. npm WARN react-codemirror@1.0.0 requires a peer of react-dom@>=15.5 <16 but none is installed. You must install peer dependenciesyourself. npm WARN react-jsonschema-form@0.49.0 requires a peer of react@^15.0.0 but none is installed. You must install peer dependencies yourself.

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! sqlite3@3.1.13 install: node-pre-gyp install --fallback-to-build npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the sqlite3@3.1.13 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Botpress version: <<VERSION HERE>>

Channels: <>

raypp commented 6 years ago

npm install -g npm@latest

make sure you have gcc and g++ sudo apt-get install gcc sudo apt-get install g++

then try to install sqlite3 again: npm install sqlite3

damintsew commented 6 years ago

I have same problem. I think @aaronorellana has MacOS.

I've installed brew install gcc

I've installed sqlite using npm install sqlite3 --build-from-source.

But after all botpress tries to build it and falls.

efleurine commented 6 years ago

which version of the cli are you using. I mean when I do npm install -g botpress it works fines for botpress installation but if I do npm install -g botpress@beta once I try to init a new botpress app it would failed.

epaminond commented 6 years ago

@aaronorellana , this seems to be directory permissions error. Check https://docs.npmjs.com/getting-started/fixing-npm-permissions for more details on how to fix it.

oppih commented 6 years ago

The problem is due to 'node-sqlite3' does not support node 10 yet. See it here: https://github.com/mapbox/node-sqlite3/issues/977
After I changed node from v10 to v9, it went OK.

epaminond commented 6 years ago

@oppih , yes, you are right, sorry.