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 fails on linux #31

Closed
JonnyTech opened this issue Mar 11, 2014 · 6 comments
Closed

Install fails on linux #31

JonnyTech opened this issue Mar 11, 2014 · 6 comments

Comments

@JonnyTech
Copy link

I'm getting the error "Error: Cannot find module '/usr/lib/agent/cli.js'" when installing Prey.

user[~]$ sudo npm install -g --unsafe-perm prey
npm http GET https://registry.npmjs.org/prey
npm http 304 https://registry.npmjs.org/prey
npm http GET https://registry.npmjs.org/commander
npm http GET https://registry.npmjs.org/getset
npm http GET https://registry.npmjs.org/needle
npm http GET https://registry.npmjs.org/xml2js
npm http GET https://registry.npmjs.org/dialog
npm http GET https://registry.npmjs.org/mime/1.2.5
npm http GET https://registry.npmjs.org/reply
npm http GET https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/unzip
npm http GET https://registry.npmjs.org/campfire
npm http GET https://registry.npmjs.org/nodemailer
npm http GET https://registry.npmjs.org/connect
npm http GET https://registry.npmjs.org/request
npm http 304 https://registry.npmjs.org/getset
npm http 304 https://registry.npmjs.org/xml2js
npm http 304 https://registry.npmjs.org/dialog
npm http 304 https://registry.npmjs.org/mime/1.2.5
npm http 304 https://registry.npmjs.org/underscore
npm http 304 https://registry.npmjs.org/async
npm http 304 https://registry.npmjs.org/needle
npm http 304 https://registry.npmjs.org/reply
npm http 304 https://registry.npmjs.org/nodemailer
npm http 304 https://registry.npmjs.org/unzip
npm http 304 https://registry.npmjs.org/connect
npm http 304 https://registry.npmjs.org/campfire
npm http 304 https://registry.npmjs.org/request
npm http 304 https://registry.npmjs.org/commander
npm http GET https://registry.npmjs.org/qs
npm http GET https://registry.npmjs.org/iconv-lite
npm http GET https://registry.npmjs.org/forever-agent
npm http GET https://registry.npmjs.org/qs
npm http GET https://registry.npmjs.org/json-stringify-safe
npm http GET https://registry.npmjs.org/node-uuid
npm http GET https://registry.npmjs.org/mime
npm http GET https://registry.npmjs.org/form-data
npm http GET https://registry.npmjs.org/tunnel-agent
npm http GET https://registry.npmjs.org/tough-cookie
npm http GET https://registry.npmjs.org/http-signature
npm http GET https://registry.npmjs.org/oauth-sign
npm http GET https://registry.npmjs.org/hawk
npm http GET https://registry.npmjs.org/aws-sign2
npm http GET https://registry.npmjs.org/fstream
npm http GET https://registry.npmjs.org/pullstream
npm http GET https://registry.npmjs.org/readable-stream
npm http GET https://registry.npmjs.org/binary
npm http GET https://registry.npmjs.org/setimmediate
npm http GET https://registry.npmjs.org/match-stream
npm http GET https://registry.npmjs.org/sax
npm http GET https://registry.npmjs.org/xmlbuilder
npm http GET https://registry.npmjs.org/basic-auth-connect/1.0.0
npm http GET https://registry.npmjs.org/cookie-parser/1.0.1
npm http GET https://registry.npmjs.org/cookie-signature/1.0.3
npm http GET https://registry.npmjs.org/compression/1.0.0
npm http GET https://registry.npmjs.org/connect-timeout/1.0.0
npm http GET https://registry.npmjs.org/csurf/1.0.0
npm http GET https://registry.npmjs.org/errorhandler/1.0.0
npm http GET https://registry.npmjs.org/express-session/1.0.2
npm http GET https://registry.npmjs.org/fresh/0.2.2
npm http GET https://registry.npmjs.org/method-override/1.0.0
npm http GET https://registry.npmjs.org/morgan/1.0.0
npm http GET https://registry.npmjs.org/response-time/1.0.0
npm http GET https://registry.npmjs.org/qs/0.6.6
npm http GET https://registry.npmjs.org/serve-index/1.0.1
npm http GET https://registry.npmjs.org/serve-static/1.0.2
npm http GET https://registry.npmjs.org/static-favicon/1.0.0
npm http GET https://registry.npmjs.org/vhost/1.0.0
npm http GET https://registry.npmjs.org/bytes/0.2.1
npm http GET https://registry.npmjs.org/pause/0.0.1
npm http GET https://registry.npmjs.org/debug
npm http GET https://registry.npmjs.org/raw-body/1.1.3
npm http GET https://registry.npmjs.org/multiparty/2.2.0
npm http GET https://registry.npmjs.org/mailcomposer
npm http GET https://registry.npmjs.org/simplesmtp
npm http GET https://registry.npmjs.org/directmail
npm http GET https://registry.npmjs.org/he
npm http GET https://registry.npmjs.org/public-address
npm http GET https://registry.npmjs.org/readable-stream
npm http 304 https://registry.npmjs.org/forever-agent
npm http 304 https://registry.npmjs.org/qs
npm http 304 https://registry.npmjs.org/qs
npm http 304 https://registry.npmjs.org/json-stringify-safe
npm http 304 https://registry.npmjs.org/form-data
npm http 304 https://registry.npmjs.org/mime
npm http 304 https://registry.npmjs.org/tunnel-agent
npm http 304 https://registry.npmjs.org/node-uuid
npm http 304 https://registry.npmjs.org/tough-cookie
npm http 304 https://registry.npmjs.org/http-signature
npm http 304 https://registry.npmjs.org/oauth-sign
npm http 304 https://registry.npmjs.org/hawk
npm http 304 https://registry.npmjs.org/aws-sign2
npm http 304 https://registry.npmjs.org/fstream
npm http 304 https://registry.npmjs.org/pullstream
npm http 304 https://registry.npmjs.org/readable-stream
npm http 304 https://registry.npmjs.org/binary
npm http 304 https://registry.npmjs.org/setimmediate
npm http 304 https://registry.npmjs.org/match-stream
npm http GET https://registry.npmjs.org/over
npm http GET https://registry.npmjs.org/slice-stream/0.0.0
npm http GET https://registry.npmjs.org/string_decoder
npm http GET https://registry.npmjs.org/buffers
npm http GET https://registry.npmjs.org/rimraf
npm http GET https://registry.npmjs.org/mkdirp
npm http GET https://registry.npmjs.org/graceful-fs
npm http GET https://registry.npmjs.org/inherits
npm http GET https://registry.npmjs.org/chainsaw
npm http 304 https://registry.npmjs.org/sax
npm http 304 https://registry.npmjs.org/basic-auth-connect/1.0.0
npm http 304 https://registry.npmjs.org/cookie-parser/1.0.1
npm http 304 https://registry.npmjs.org/cookie-signature/1.0.3
npm http 304 https://registry.npmjs.org/xmlbuilder
npm http 304 https://registry.npmjs.org/compression/1.0.0
npm http 304 https://registry.npmjs.org/connect-timeout/1.0.0
npm http 304 https://registry.npmjs.org/express-session/1.0.2
npm http 304 https://registry.npmjs.org/errorhandler/1.0.0
npm http 304 https://registry.npmjs.org/csurf/1.0.0
npm http 304 https://registry.npmjs.org/fresh/0.2.2
npm http 304 https://registry.npmjs.org/method-override/1.0.0
npm http 304 https://registry.npmjs.org/qs/0.6.6
npm http 304 https://registry.npmjs.org/morgan/1.0.0
npm http 304 https://registry.npmjs.org/serve-index/1.0.1
npm http 304 https://registry.npmjs.org/response-time/1.0.0
npm http GET https://registry.npmjs.org/combined-stream
npm http 304 https://registry.npmjs.org/serve-static/1.0.2
npm http GET https://registry.npmjs.org/assert-plus/0.1.2
npm http GET https://registry.npmjs.org/asn1/0.1.11
npm http GET https://registry.npmjs.org/ctype/0.5.2
npm http GET https://registry.npmjs.org/punycode
npm http GET https://registry.npmjs.org/hoek
npm http GET https://registry.npmjs.org/boom
npm http GET https://registry.npmjs.org/cryptiles
npm http GET https://registry.npmjs.org/sntp
npm http 304 https://registry.npmjs.org/bytes/0.2.1
npm http 304 https://registry.npmjs.org/pause/0.0.1
npm http 304 https://registry.npmjs.org/vhost/1.0.0
npm http 304 https://registry.npmjs.org/static-favicon/1.0.0
npm http 304 https://registry.npmjs.org/multiparty/2.2.0
npm http 304 https://registry.npmjs.org/raw-body/1.1.3
npm http 304 https://registry.npmjs.org/mailcomposer
npm http 304 https://registry.npmjs.org/simplesmtp
npm http 304 https://registry.npmjs.org/he
npm http 304 https://registry.npmjs.org/directmail
npm http 304 https://registry.npmjs.org/public-address
npm http 304 https://registry.npmjs.org/readable-stream
npm http 304 https://registry.npmjs.org/over
npm http GET https://registry.npmjs.org/core-util-is
npm http GET https://registry.npmjs.org/debuglog/0.0.2
npm http GET https://registry.npmjs.org/rai
npm http GET https://registry.npmjs.org/xoauth2
npm http GET https://registry.npmjs.org/mimelib
npm http GET https://registry.npmjs.org/mime/1.2.9
npm http GET https://registry.npmjs.org/punycode
npm http GET https://registry.npmjs.org/follow-redirects/0.0.3
npm http GET https://registry.npmjs.org/dkim-signer
npm http 304 https://registry.npmjs.org/string_decoder
npm http 304 https://registry.npmjs.org/buffers
npm http 304 https://registry.npmjs.org/slice-stream/0.0.0
npm http 304 https://registry.npmjs.org/mkdirp
npm http 304 https://registry.npmjs.org/graceful-fs
npm http 304 https://registry.npmjs.org/inherits
npm http 304 https://registry.npmjs.org/chainsaw
npm http GET https://registry.npmjs.org/traverse
npm http 304 https://registry.npmjs.org/combined-stream
npm http 304 https://registry.npmjs.org/assert-plus/0.1.2
npm http GET https://registry.npmjs.org/delayed-stream/0.0.5
npm http 304 https://registry.npmjs.org/rimraf
npm http 304 https://registry.npmjs.org/asn1/0.1.11
npm http 304 https://registry.npmjs.org/iconv-lite
npm http 304 https://registry.npmjs.org/ctype/0.5.2
npm http 304 https://registry.npmjs.org/punycode
npm http 304 https://registry.npmjs.org/hoek
npm http 304 https://registry.npmjs.org/boom
npm http 304 https://registry.npmjs.org/cryptiles
npm http 304 https://registry.npmjs.org/sntp
npm http 304 https://registry.npmjs.org/core-util-is
npm http 304 https://registry.npmjs.org/xoauth2
npm http 304 https://registry.npmjs.org/rai
npm http 304 https://registry.npmjs.org/debuglog/0.0.2
npm http 304 https://registry.npmjs.org/punycode
npm http 304 https://registry.npmjs.org/mimelib
npm http 304 https://registry.npmjs.org/mime/1.2.9
npm http 304 https://registry.npmjs.org/dkim-signer
npm http 304 https://registry.npmjs.org/traverse
npm http 304 https://registry.npmjs.org/follow-redirects/0.0.3
npm http 304 https://registry.npmjs.org/delayed-stream/0.0.5
npm http GET https://registry.npmjs.org/encoding
npm http GET https://registry.npmjs.org/addressparser
npm http 304 https://registry.npmjs.org/addressparser
npm http 304 https://registry.npmjs.org/encoding
npm http 304 https://registry.npmjs.org/debug
npm http GET https://registry.npmjs.org/uid2
npm http GET https://registry.npmjs.org/methods
npm http GET https://registry.npmjs.org/cookie/0.1.0
npm http GET https://registry.npmjs.org/send/0.2.0
npm http GET https://registry.npmjs.org/negotiator/0.3.0
npm http GET https://registry.npmjs.org/compressible/1.0.0
npm http GET https://registry.npmjs.org/utils-merge/1.0.0
npm http GET https://registry.npmjs.org/uid2/0.0.3
npm http GET https://registry.npmjs.org/buffer-crc32/0.2.1
npm http GET https://registry.npmjs.org/batch/0.5.0
npm http GET https://registry.npmjs.org/negotiator/0.4.2
npm http 304 https://registry.npmjs.org/methods
npm http 304 https://registry.npmjs.org/uid2
npm http 304 https://registry.npmjs.org/negotiator/0.3.0
npm http 304 https://registry.npmjs.org/send/0.2.0
npm http GET https://registry.npmjs.org/mime
npm http GET https://registry.npmjs.org/range-parser
npm http 304 https://registry.npmjs.org/cookie/0.1.0
npm http 304 https://registry.npmjs.org/compressible/1.0.0
npm http 304 https://registry.npmjs.org/uid2/0.0.3
npm http GET https://registry.npmjs.org/readable-stream
npm http GET https://registry.npmjs.org/stream-counter
npm http 304 https://registry.npmjs.org/mime
npm http 304 https://registry.npmjs.org/batch/0.5.0
npm http 304 https://registry.npmjs.org/utils-merge/1.0.0
npm http 304 https://registry.npmjs.org/buffer-crc32/0.2.1
npm http 304 https://registry.npmjs.org/negotiator/0.4.2
npm http 304 https://registry.npmjs.org/range-parser
npm http 304 https://registry.npmjs.org/readable-stream
npm http 304 https://registry.npmjs.org/stream-counter
npm http GET https://registry.npmjs.org/string_decoder
npm http 304 https://registry.npmjs.org/string_decoder
/usr/bin/prey -> /usr/lib/node_modules/prey/bin/prey

> [email protected] postinstall /usr/lib/node_modules/prey
> node ./scripts/post_install.js

System start/stop links for /etc/init.d/prey-trigger already exist.
System setup successful! Please run 'prey config activate -g' to start tracking.
[email protected] /usr/lib/node_modules/prey
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
user[~]$ 

user[~]$ prey

module.js:340
    throw err;
          ^
Error: Cannot find module '/usr/lib/agent/cli.js'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:902:3
user[~]$ sudo prey

module.js:340
    throw err;
          ^
Error: Cannot find module '/usr/lib/agent/cli.js'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:902:3
user[~]$ 

Linux Mint 16 x64.

Any suggestions?

@KAIECHI
Copy link

KAIECHI commented Mar 11, 2014

Dont really know, Sorry can't help.

Date: Tue, 11 Mar 2014 06:46:07 -0700
From: [email protected]
To: [email protected]
Subject: [prey-node-client] Install fails on linux (#31)

I'm getting the error "Error: Cannot find module '/usr/lib/agent/cli.js'" when installing Prey.

user[~]$ sudo npm install -g --unsafe-perm prey
npm http GET https://registry.npmjs.org/prey
npm http 304 https://registry.npmjs.org/prey
npm http GET https://registry.npmjs.org/commander
npm http GET https://registry.npmjs.org/getset
npm http GET https://registry.npmjs.org/needle
npm http GET https://registry.npmjs.org/xml2js
npm http GET https://registry.npmjs.org/dialog
npm http GET https://registry.npmjs.org/mime/1.2.5
npm http GET https://registry.npmjs.org/reply
npm http GET https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/unzip
npm http GET https://registry.npmjs.org/campfire
npm http GET https://registry.npmjs.org/nodemailer
npm http GET https://registry.npmjs.org/connect
npm http GET https://registry.npmjs.org/request
npm http 304 https://registry.npmjs.org/getset
npm http 304 https://registry.npmjs.org/xml2js
npm http 304 https://registry.npmjs.org/dialog
npm http 304 https://registry.npmjs.org/mime/1.2.5
npm http 304 https://registry.npmjs.org/underscore
npm http 304 https://registry.npmjs.org/async
npm http 304 https://registry.npmjs.org/needle
npm http 304 https://registry.npmjs.org/reply
npm http 304 https://registry.npmjs.org/nodemailer
npm http 304 https://registry.npmjs.org/unzip
npm http 304 https://registry.npmjs.org/connect
npm http 304 https://registry.npmjs.org/campfire
npm http 304 https://registry.npmjs.org/request
npm http 304 https://registry.npmjs.org/commander
npm http GET https://registry.npmjs.org/qs
npm http GET https://registry.npmjs.org/iconv-lite
npm http GET https://registry.npmjs.org/forever-agent
npm http GET https://registry.npmjs.org/qs
npm http GET https://registry.npmjs.org/json-stringify-safe
npm http GET https://registry.npmjs.org/node-uuid
npm http GET https://registry.npmjs.org/mime
npm http GET https://registry.npmjs.org/form-data
npm http GET https://registry.npmjs.org/tunnel-agent
npm http GET https://registry.npmjs.org/tough-cookie
npm http GET https://registry.npmjs.org/http-signature
npm http GET https://registry.npmjs.org/oauth-sign
npm http GET https://registry.npmjs.org/hawk
npm http GET https://registry.npmjs.org/aws-sign2
npm http GET https://registry.npmjs.org/fstream
npm http GET https://registry.npmjs.org/pullstream
npm http GET https://registry.npmjs.org/readable-stream
npm http GET https://registry.npmjs.org/binary
npm http GET https://registry.npmjs.org/setimmediate
npm http GET https://registry.npmjs.org/match-stream
npm http GET https://registry.npmjs.org/sax
npm http GET https://registry.npmjs.org/xmlbuilder
npm http GET https://registry.npmjs.org/basic-auth-connect/1.0.0
npm http GET https://registry.npmjs.org/cookie-parser/1.0.1
npm http GET https://registry.npmjs.org/cookie-signature/1.0.3
npm http GET https://registry.npmjs.org/compression/1.0.0
npm http GET https://registry.npmjs.org/connect-timeout/1.0.0
npm http GET https://registry.npmjs.org/csurf/1.0.0
npm http GET https://registry.npmjs.org/errorhandler/1.0.0
npm http GET https://registry.npmjs.org/express-session/1.0.2
npm http GET https://registry.npmjs.org/fresh/0.2.2
npm http GET https://registry.npmjs.org/method-override/1.0.0
npm http GET https://registry.npmjs.org/morgan/1.0.0
npm http GET https://registry.npmjs.org/response-time/1.0.0
npm http GET https://registry.npmjs.org/qs/0.6.6
npm http GET https://registry.npmjs.org/serve-index/1.0.1
npm http GET https://registry.npmjs.org/serve-static/1.0.2
npm http GET https://registry.npmjs.org/static-favicon/1.0.0
npm http GET https://registry.npmjs.org/vhost/1.0.0
npm http GET https://registry.npmjs.org/bytes/0.2.1
npm http GET https://registry.npmjs.org/pause/0.0.1
npm http GET https://registry.npmjs.org/debug
npm http GET https://registry.npmjs.org/raw-body/1.1.3
npm http GET https://registry.npmjs.org/multiparty/2.2.0
npm http GET https://registry.npmjs.org/mailcomposer
npm http GET https://registry.npmjs.org/simplesmtp
npm http GET https://registry.npmjs.org/directmail
npm http GET https://registry.npmjs.org/he
npm http GET https://registry.npmjs.org/public-address
npm http GET https://registry.npmjs.org/readable-stream
npm http 304 https://registry.npmjs.org/forever-agent
npm http 304 https://registry.npmjs.org/qs
npm http 304 https://registry.npmjs.org/qs
npm http 304 https://registry.npmjs.org/json-stringify-safe
npm http 304 https://registry.npmjs.org/form-data
npm http 304 https://registry.npmjs.org/mime
npm http 304 https://registry.npmjs.org/tunnel-agent
npm http 304 https://registry.npmjs.org/node-uuid
npm http 304 https://registry.npmjs.org/tough-cookie
npm http 304 https://registry.npmjs.org/http-signature
npm http 304 https://registry.npmjs.org/oauth-sign
npm http 304 https://registry.npmjs.org/hawk
npm http 304 https://registry.npmjs.org/aws-sign2
npm http 304 https://registry.npmjs.org/fstream
npm http 304 https://registry.npmjs.org/pullstream
npm http 304 https://registry.npmjs.org/readable-stream
npm http 304 https://registry.npmjs.org/binary
npm http 304 https://registry.npmjs.org/setimmediate
npm http 304 https://registry.npmjs.org/match-stream
npm http GET https://registry.npmjs.org/over
npm http GET https://registry.npmjs.org/slice-stream/0.0.0
npm http GET https://registry.npmjs.org/string_decoder
npm http GET https://registry.npmjs.org/buffers
npm http GET https://registry.npmjs.org/rimraf
npm http GET https://registry.npmjs.org/mkdirp
npm http GET https://registry.npmjs.org/graceful-fs
npm http GET https://registry.npmjs.org/inherits
npm http GET https://registry.npmjs.org/chainsaw
npm http 304 https://registry.npmjs.org/sax
npm http 304 https://registry.npmjs.org/basic-auth-connect/1.0.0
npm http 304 https://registry.npmjs.org/cookie-parser/1.0.1
npm http 304 https://registry.npmjs.org/cookie-signature/1.0.3
npm http 304 https://registry.npmjs.org/xmlbuilder
npm http 304 https://registry.npmjs.org/compression/1.0.0
npm http 304 https://registry.npmjs.org/connect-timeout/1.0.0
npm http 304 https://registry.npmjs.org/express-session/1.0.2
npm http 304 https://registry.npmjs.org/errorhandler/1.0.0
npm http 304 https://registry.npmjs.org/csurf/1.0.0
npm http 304 https://registry.npmjs.org/fresh/0.2.2
npm http 304 https://registry.npmjs.org/method-override/1.0.0
npm http 304 https://registry.npmjs.org/qs/0.6.6
npm http 304 https://registry.npmjs.org/morgan/1.0.0
npm http 304 https://registry.npmjs.org/serve-index/1.0.1
npm http 304 https://registry.npmjs.org/response-time/1.0.0
npm http GET https://registry.npmjs.org/combined-stream
npm http 304 https://registry.npmjs.org/serve-static/1.0.2
npm http GET https://registry.npmjs.org/assert-plus/0.1.2
npm http GET https://registry.npmjs.org/asn1/0.1.11
npm http GET https://registry.npmjs.org/ctype/0.5.2
npm http GET https://registry.npmjs.org/punycode
npm http GET https://registry.npmjs.org/hoek
npm http GET https://registry.npmjs.org/boom
npm http GET https://registry.npmjs.org/cryptiles
npm http GET https://registry.npmjs.org/sntp
npm http 304 https://registry.npmjs.org/bytes/0.2.1
npm http 304 https://registry.npmjs.org/pause/0.0.1
npm http 304 https://registry.npmjs.org/vhost/1.0.0
npm http 304 https://registry.npmjs.org/static-favicon/1.0.0
npm http 304 https://registry.npmjs.org/multiparty/2.2.0
npm http 304 https://registry.npmjs.org/raw-body/1.1.3
npm http 304 https://registry.npmjs.org/mailcomposer
npm http 304 https://registry.npmjs.org/simplesmtp
npm http 304 https://registry.npmjs.org/he
npm http 304 https://registry.npmjs.org/directmail
npm http 304 https://registry.npmjs.org/public-address
npm http 304 https://registry.npmjs.org/readable-stream
npm http 304 https://registry.npmjs.org/over
npm http GET https://registry.npmjs.org/core-util-is
npm http GET https://registry.npmjs.org/debuglog/0.0.2
npm http GET https://registry.npmjs.org/rai
npm http GET https://registry.npmjs.org/xoauth2
npm http GET https://registry.npmjs.org/mimelib
npm http GET https://registry.npmjs.org/mime/1.2.9
npm http GET https://registry.npmjs.org/punycode
npm http GET https://registry.npmjs.org/follow-redirects/0.0.3
npm http GET https://registry.npmjs.org/dkim-signer
npm http 304 https://registry.npmjs.org/string_decoder
npm http 304 https://registry.npmjs.org/buffers
npm http 304 https://registry.npmjs.org/slice-stream/0.0.0
npm http 304 https://registry.npmjs.org/mkdirp
npm http 304 https://registry.npmjs.org/graceful-fs
npm http 304 https://registry.npmjs.org/inherits
npm http 304 https://registry.npmjs.org/chainsaw
npm http GET https://registry.npmjs.org/traverse
npm http 304 https://registry.npmjs.org/combined-stream
npm http 304 https://registry.npmjs.org/assert-plus/0.1.2
npm http GET https://registry.npmjs.org/delayed-stream/0.0.5
npm http 304 https://registry.npmjs.org/rimraf
npm http 304 https://registry.npmjs.org/asn1/0.1.11
npm http 304 https://registry.npmjs.org/iconv-lite
npm http 304 https://registry.npmjs.org/ctype/0.5.2
npm http 304 https://registry.npmjs.org/punycode
npm http 304 https://registry.npmjs.org/hoek
npm http 304 https://registry.npmjs.org/boom
npm http 304 https://registry.npmjs.org/cryptiles
npm http 304 https://registry.npmjs.org/sntp
npm http 304 https://registry.npmjs.org/core-util-is
npm http 304 https://registry.npmjs.org/xoauth2
npm http 304 https://registry.npmjs.org/rai
npm http 304 https://registry.npmjs.org/debuglog/0.0.2
npm http 304 https://registry.npmjs.org/punycode
npm http 304 https://registry.npmjs.org/mimelib
npm http 304 https://registry.npmjs.org/mime/1.2.9
npm http 304 https://registry.npmjs.org/dkim-signer
npm http 304 https://registry.npmjs.org/traverse
npm http 304 https://registry.npmjs.org/follow-redirects/0.0.3
npm http 304 https://registry.npmjs.org/delayed-stream/0.0.5
npm http GET https://registry.npmjs.org/encoding
npm http GET https://registry.npmjs.org/addressparser
npm http 304 https://registry.npmjs.org/addressparser
npm http 304 https://registry.npmjs.org/encoding
npm http 304 https://registry.npmjs.org/debug
npm http GET https://registry.npmjs.org/uid2
npm http GET https://registry.npmjs.org/methods
npm http GET https://registry.npmjs.org/cookie/0.1.0
npm http GET https://registry.npmjs.org/send/0.2.0
npm http GET https://registry.npmjs.org/negotiator/0.3.0
npm http GET https://registry.npmjs.org/compressible/1.0.0
npm http GET https://registry.npmjs.org/utils-merge/1.0.0
npm http GET https://registry.npmjs.org/uid2/0.0.3
npm http GET https://registry.npmjs.org/buffer-crc32/0.2.1
npm http GET https://registry.npmjs.org/batch/0.5.0
npm http GET https://registry.npmjs.org/negotiator/0.4.2
npm http 304 https://registry.npmjs.org/methods
npm http 304 https://registry.npmjs.org/uid2
npm http 304 https://registry.npmjs.org/negotiator/0.3.0
npm http 304 https://registry.npmjs.org/send/0.2.0
npm http GET https://registry.npmjs.org/mime
npm http GET https://registry.npmjs.org/range-parser
npm http 304 https://registry.npmjs.org/cookie/0.1.0
npm http 304 https://registry.npmjs.org/compressible/1.0.0
npm http 304 https://registry.npmjs.org/uid2/0.0.3
npm http GET https://registry.npmjs.org/readable-stream
npm http GET https://registry.npmjs.org/stream-counter
npm http 304 https://registry.npmjs.org/mime
npm http 304 https://registry.npmjs.org/batch/0.5.0
npm http 304 https://registry.npmjs.org/utils-merge/1.0.0
npm http 304 https://registry.npmjs.org/buffer-crc32/0.2.1
npm http 304 https://registry.npmjs.org/negotiator/0.4.2
npm http 304 https://registry.npmjs.org/range-parser
npm http 304 https://registry.npmjs.org/readable-stream
npm http 304 https://registry.npmjs.org/stream-counter
npm http GET https://registry.npmjs.org/string_decoder
npm http 304 https://registry.npmjs.org/string_decoder
/usr/bin/prey -> /usr/lib/node_modules/prey/bin/prey

[email protected] postinstall /usr/lib/node_modules/prey
node ./scripts/post_install.js

System start/stop links for /etc/init.d/prey-trigger already exist.
System setup successful! Please run 'prey config activate -g' to start tracking.
[email protected] /usr/lib/node_modules/prey
¢u¢w¢w [email protected]
¢u¢w¢w [email protected]
¢u¢w¢w [email protected]
¢u¢w¢w [email protected]
¢u¢w¢w [email protected]
¢u¢w¢w [email protected]
¢u¢w¢w [email protected]
¢u¢w¢w [email protected]
¢u¢w¢w [email protected] ([email protected], [email protected])
¢u¢w¢w [email protected] ([email protected], [email protected])
¢u¢w¢w [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
¢u¢w¢w [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
¢u¢w¢w [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
¢|¢w¢w [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
user[~]$

user[~]$ prey

module.js:340
throw err;
^
Error: Cannot find module '/usr/lib/agent/cli.js'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:902:3
user[~]$ sudo prey

module.js:340
throw err;
^
Error: Cannot find module '/usr/lib/agent/cli.js'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:902:3
user[~]$

Linux Mint 16 x64.

Any suggestions?

¡X
Reply to this email directly or view it on GitHub.

@JonnyTech
Copy link
Author

I tried running the post install script manually:

user[package]$ cd ~/.npm/prey/0.9.2/package/
user[package]$ sudo ./scripts/post_install.js 
module.js:340
    throw err;
          ^
Error: Cannot find module 'dialog'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/home/user/.npm/prey/0.9.2/package/lib/conf/cli.js:5:14)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
{ [Error: Command failed: 
module.js:340
    throw err;
          ^
Error: Cannot find module 'dialog'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/home/user/.npm/prey/0.9.2/package/lib/conf/cli.js:5:14)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
] killed: false, code: 8, signal: null }

Also tried this:

user[package]$ prey

module.js:340
    throw err;
          ^
Error: Cannot find module '/usr/lib/agent/cli.js'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:902:3


user[package]$ ./bin/prey 

module.js:340
    throw err;
          ^
Error: Cannot find module 'commander'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/home/user/.npm/prey/0.9.2/package/lib/agent/cli.js:15:17)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
user[package]$ 

This is a fresh install of the OS, with npm installed with instructions from wiki:

sudo apt-get install -y python-software-properties python g++ make
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs

@mauricioschneider
Copy link
Contributor

I will try to replicate on a virtual machine with the same OS and let you know how it goes.

@thefotios
Copy link

It appears as though the bash script in /bin/prey isn't calling the node modules properly. I am however able to run node /lib/node_modules/prey/lib/conf/cli.js config gui (albeit with different errors).

@mauricioschneider
Copy link
Contributor

@thefotios Are you also experiencing these issues in Linux Mint or is it another distro?

@tomas
Copy link
Contributor

tomas commented Sep 23, 2014

Hi,

The 1.2.x branch of the client address these issues, so now a full installation via npm works just as it would when installing through the official packages. Feel free to reopen an issue if you encounter any other problems.

@tomas tomas closed this as completed Sep 23, 2014
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

5 participants