8000 Install failing on Ubuntu Server · Issue #141 · Matterwiki/Matterwiki · GitHub
[go: up one dir, main page]

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

Install failing on Ubuntu Server #141

Open
rsaacademy opened this issue Jan 23, 2019 · 4 comments
Open

Install failing on Ubuntu Server #141

rsaacademy opened this issue Jan 23, 2019 · 4 comments

Comments

@rsaacademy
Copy link

Hi All, Going mad with this issue and don't seem to be able to move forward.

Fresh install of Ubuntu Server 16.04, static IP address configured. Updated and upgraded via CLI.
Followed steps on: https://devhub.io/repos/Matterwiki-Matterwiki

cd'd into directory /home/administrator/matterwiki where the clone is located and ran sudo np install which results in the below error:

administrator@rsa-srv-029:~/matterwiki$ sudo npm install

sqlite3@3.1.4 install /home/administrator/matterwiki/node_modules/sqlite3
node-pre-gyp install --fallback-to-build

/usr/bin/env: ‘node’: No such file or directory
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.2.7
npm WARN optional Skipping failed optional dependency /watchpack/chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.2.7
npm ERR! Linux 4.4.0-131-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! node v4.2.6
npm ERR! npm v3.5.2
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn

npm ERR! sqlite3@3.1.4 install: node-pre-gyp install --fallback-to-build
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the sqlite3@3.1.4 install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the sqlite3 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-pre-gyp install --fallback-to-build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs sqlite3
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls sqlite3
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /home/administrator/matterwiki/npm-debug.log

Under pressure to get this working so any help is much appreciated.

@rsaacademy
Copy link
Author

Still looking for a fix, anyone have any ideas?

@rivercome
Copy link

Hi All, Going mad with this issue and don't seem to be able to move forward.

Fresh install of Ubuntu Server 16.04, static IP address configured. Updated and upgraded via CLI.
Followed steps on: https://devhub.io/repos/Matterwiki-Matterwiki

cd'd into directory /home/administrator/matterwiki where the clone is located and ran sudo np install which results in the below error:

administrator@rsa-srv-029:~/matterwiki$ sudo npm install

sqlite3@3.1.4 install /home/administrator/matterwiki/node_modules/sqlite3
node-pre-gyp install --fallback-to-build

/usr/bin/env: ‘node’: No such file or directory
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.2.7
npm WARN optional Skipping failed optional dependency /watchpack/chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.2.7
npm ERR! Linux 4.4.0-131-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! node v4.2.6
npm ERR! npm v3.5.2
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn

npm ERR! sqlite3@3.1.4 install: node-pre-gyp install --fallback-to-build
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the sqlite3@3.1.4 install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the sqlite3 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-pre-gyp install --fallback-to-build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs sqlite3
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls sqlite3
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /home/administrator/matterwiki/npm-debug.log

Under pressure to get this working so any help is much appreciated.

I think the problem is because of your server don't have sqlite3
you can
apt-get install sqlite3
first

@wancheng
Copy link

Still looking for a fix, anyone have any ideas?

try ln -s /usr/bin/nodejs `/usr/bin/node
then npm install again.

@wcjx
Copy link
wcjx commented Jun 24, 2019

I have also encountered something with sqlite3:

node-pre-gyp ERR! Pre-built binaries not found for sqlite3@3.1.4 and node@10.16.0 (node-v64 ABI) (falling back to source compile with node-gyp)
node-pre-gyp http 403 status code downloading tarball https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.4/node-v64-win32-x64.tar.gz

It seems that the old version is no longer there.
So I tried npm uninstall sqlite3 and then npm install sqlite3 to update sqlite3, and it works.
Or you could try my fork, which fixes it and has some improvements. 🙂

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

4 participants
0