imgbi / img.bi

img.bi main website
GNU General Public License v3.0
187 stars 27 forks source link

Unable to Install a Server #54

Open TheCherry opened 8 years ago

TheCherry commented 8 years ago

Hi,

My System:

Distributor ID: Debian
Description:    Debian GNU/Linux 8.0 (jessie)
Release:    8.0
Codename:   jessie
npm install -g imgbi-server

say that there isn’t any package to install:

npm ERR! 404 Not Found
npm ERR! 404 
npm ERR! 404 'imgbi-server' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it
npm ERR! 404 
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, or http url, or git url.

npm ERR! System Linux 2.6.32-43-pve
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "imgbi-server"
npm ERR! cwd /root/img.bi
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.21
npm ERR! code E404
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /root/img.bi/npm-debug.log
npm ERR! not ok code 0

If I try to install it via the git directory, I get that Errors:

> bcrypt@0.8.5 install /root/img.bi/node_modules/bcrypt
> node-gyp rebuild

gyp: Call to 'node -e "require('nan')"' returned exit status 1. while trying to load binding.gyp
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/usr/share/node-gyp/lib/configure.js:344:16)
gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:809:12)
gyp ERR! System Linux 2.6.32-43-pve
gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /root/img.bi/node_modules/bcrypt
gyp ERR! node -v v0.10.29
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok 
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian

npm ERR! bcrypt@0.8.5 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the bcrypt@0.8.5 install script.
npm ERR! This is most likely a problem with the bcrypt package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls bcrypt
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 2.6.32-43-pve
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "instal"
npm ERR! cwd /root/img.bi
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.21
npm ERR! code ELIFECYCLE
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /root/img.bi/npm-debug.log
npm ERR! not ok code 0
rugk commented 8 years ago

You may need to install bcrypt manually npm install bcrypt

Just fiddle around a bit. I think I had a similar error and got it working anyway.

Also this might be a typo in some install script?

npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "instal"

It should be "install" should not it?

k0nsl commented 7 years ago

I get a bit further than that:

root@ragnarok:~/img.bi# npm run
Lifecycle scripts included in img.bi-server:
  test
    ./node_modules/jshint/bin/jshint *.js backend/**/*.js frontend/**/*.js tests/**/*.js && ./node_modules/jsonlint/lib/cli.js -q package.json && ./node_modules/jsonlint/lib/cli.js -q config-fontello.json && ./node_modules/jsonlint/lib/cli.js -q frontend/languages.json && ./node_modules/jsonlint/lib/cli.js -q config.json && ./node_modules/jsonlint/lib/cli.js -q commands.json && ./node_modules/karma/bin/karma start karma.conf.js && ./node_modules/mocha/bin/mocha tests/backend/*.tests.js && node_modules/jscs/bin/jscs *.js backend/**/*.js frontend/**/*.js tests/**/*.js
  prepublish
    node ./scripts/generate-manpage.js

My npm and node versions are:

root@ragnarok:~/img.bi# npm -v
3.10.3
root@ragnarok:~/img.bi# node -v
v6.6.0

Any help is welcomed.

k0nsl commented 7 years ago

I've come a little bit closer to getting it working, but there's a problem with installing gulp-sharp:

root@ragnarok:~/img.bi# npm install gulp-sharp
npm WARN deprecated sharp@0.12.2: CVE-2016-3714 https://github.com/lovell/sharp/issues/424

> sharp@0.12.2 install /root/img.bi/node_modules/gulp-sharp/node_modules/sharp
> node-gyp rebuild

ERROR: https://dl.bintray.com/lovell/sharp/libvips-8.2.0-lin.tar.gz status code 404
gyp: Call to 'LDD_VERSION="ldd (Debian GLIBC 2.19-18+deb8u7) 2.19
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper." node -e "require('./binding').download_vips()"' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:305:16)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Linux 3.16.0-4-amd64
gyp ERR! command "/usr/bin/nodejs" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /root/img.bi/node_modules/gulp-sharp/node_modules/sharp
gyp ERR! node -v v6.6.0
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok
img.bi-server@0.0.2 /root/img.bi
└── (empty)

npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.0.17
npm ERR! Linux 3.16.0-4-amd64
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "gulp-sharp"
npm ERR! node v6.6.0
npm ERR! npm  v3.10.3
npm ERR! code ELIFECYCLE

npm ERR! sharp@0.12.2 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sharp@0.12.2 install script 'node-gyp rebuild'.
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 sharp package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs sharp
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls sharp
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /root/img.bi/npm-debug.log
npm ERR! code 1
rugk commented 7 years ago

ERROR: https://dl.bintray.com/lovell/sharp/libvips-8.2.0-lin.tar.gz status code 404

Have a look at the site, there is indeed no file. Maybe you need to contact the author of this package.