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 failed: [email protected] #94

Closed
ghost opened this issue Jul 20, 2019 · 5 comments
Closed

Install failed: [email protected] #94

ghost opened this issue Jul 20, 2019 · 5 comments

Comments

@ghost
Copy link

ghost commented Jul 20, 2019

Hello,

I tried to install the software, and get these errors:

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

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/dietpi/.npm/_logs/2019-07-20T18_37_32_040Z-debug.log

Part of the log:

4285 verbose optional SKIPPING OPTIONAL DEPENDENCY:
4285 verbose optional Failed at the [email protected] install script.
4285 verbose optional SKIPPING OPTIONAL DEPENDENCY: This is probably not a problem with npm. There is likely additional logging output above.
4286 warn optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/sharp):
4287 warn optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)
4287 warn optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
4288 verbose optional SKIPPING OPTIONAL DEPENDENCY:
4288 verbose optional Failed at the [email protected] install script.
4288 verbose optional SKIPPING OPTIONAL DEPENDENCY: This is probably not a problem with npm. There is likely additional logging output above.
4289 verbose stack Error: [email protected] install: node-pre-gyp install --fallback-to-build
4289 verbose stack Exit status 1
4289 verbose stack at EventEmitter. (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
4289 verbose stack at EventEmitter.emit (events.js:198:13)
4289 verbose stack at ChildProcess. (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
4289 verbose stack at ChildProcess.emit (events.js:198:13)
4289 verbose stack at maybeClose (internal/child_process.js:982:16)
4289 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
4290 verbose pkgid [email protected]
4291 verbose cwd /home/dietpi/pigallery2
4292 verbose Linux 4.19.57-v7+
4293 verbose argv "/usr/bin/node" "/usr/bin/npm" "install"
4294 verbose node v10.16.0
4295 verbose npm v6.9.0
4296 error code ELIFECYCLE
4297 error errno 1
4298 error [email protected] install: node-pre-gyp install --fallback-to-build
4298 error Exit status 1
4299 error Failed at the [email protected] install script.
4299 error This is probably not a problem with npm. There is likely additional logging output above.
4300 verbose exit [ 1, true ]

I follow there steps, all as normal user

cd ~
wget https://github.com/bpatrik/pigallery2/releases/download/1.5.6/pigallery2.zip
unzip pigallery2.zip -d pigallery2
cd pigallery2
npm install

System info:

root@DietPi:/# uname -a
Linux DietPi 4.19.57-v7+ #1244 SMP Thu Jul 4 18:45:25 BST 2019 armv7l GNU/Linux
root@DietPi:/# nodejs --version
v10.16.0
root@DietPi:/# dpkg -l | grep sqlite
ii  libsqlite3-0:armhf         3.16.2-5+deb9u1              armhf        SQLite 3 shared library
ii  sqlite3                    3.16.2-5+deb9u1              armhf        Command line interface for SQLite 3
root@DietPi:/# 
@bpatrik
Copy link
Owner

bpatrik commented Jul 21, 2019

Hi,

Its hard to tell from this.

4298 error [email protected] install: node-pre-gyp install --fallback-to-build
4298 error Exit status 1

From this it looks like that it tries to install and build sqlite from source, but it could not. My guess would be that you are missing something like apt-get install build-essential libkrb5-dev gcc g++.

Patrik

@ghost
Copy link
Author

ghost commented Jul 21, 2019

I have installed these packages no changes still the same error.
I tried it as root, too. Still the same.

@bpatrik
Copy link
Owner

bpatrik commented Jul 21, 2019

Sorry, but I don't have any experience with DietPi. :/
What happens when you just install the sqlite npm module globally? npm i -g sqlite3 ? (it will install the latest sqlite mode, maybe that works)
Also installing sqlite or the others via apt-get install is necessary and also not enough as the app is looking for the sqlite3 npm package.

@captinsteven
Copy link

captinsteven commented Oct 9, 2019

Hi @beli3ver,
I encountered same error as you at first. But after I found below article and followed its instruction to modify permissions, I got it work.
#98

@bpatrik
Copy link
Owner

bpatrik commented Dec 11, 2019

I'm closing this due to inactivity

@bpatrik bpatrik closed this as completed Dec 11, 2019
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