[GH-ISSUE #119] Installation failure on Mac OS.X #94

Closed
opened 2026-02-26 05:31:19 +03:00 by kerem · 4 comments
Owner

Originally created by @wehtta on GitHub (Jul 16, 2014).
Original GitHub issue: https://github.com/NarrativeScience-old/log.io/issues/119

I created /var/root/.log.io/harvester.conf before installing, but error occured. It suggests error when open '/var/root/.log.io/log_server.conf'
It is unreasonable to create conf files before installing.
error message as follows:

Creating ~/.log.io/ for configuration files.
If this fails, run npm using a specific user: npm install -g log.io --user 'ubuntu'

events.js:72
throw er; // Unhandled 'error' event
^
Error: EACCES, open '/var/root/.log.io/log_server.conf'
npm ERR! log.io@0.3.3 postinstall: cake ensure:configuration
npm ERR! Exit status 8
npm ERR!
npm ERR! Failed at the log.io@0.3.3 postinstall script.
npm ERR! This is most likely a problem with the log.io package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! cake ensure:configuration
npm ERR! You can get their info via:
npm ERR! npm owner ls log.io
npm ERR! There is likely additional logging output above.

npm ERR! System Darwin 13.1.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "log.io" "--user" "matthewyu"
npm ERR! cwd /Users/matthewyu/dev/act-proj/proj
npm ERR! node -v v0.10.28
npm ERR! npm -v 1.4.9
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/matthewyu/dev/act-proj/proj/npm-debug.log
npm ERR! not ok code 0

------anybody encountered with the same problem?

Originally created by @wehtta on GitHub (Jul 16, 2014). Original GitHub issue: https://github.com/NarrativeScience-old/log.io/issues/119 I created /var/root/.log.io/harvester.conf before installing, but error occured. It suggests error when open '/var/root/.log.io/log_server.conf' It is unreasonable to create conf files before installing. error message as follows: Creating ~/.log.io/ for configuration files. If this fails, run npm using a specific user: npm install -g log.io --user 'ubuntu' events.js:72 throw er; // Unhandled 'error' event ^ Error: EACCES, open '/var/root/.log.io/log_server.conf' npm ERR! log.io@0.3.3 postinstall: `cake ensure:configuration` npm ERR! Exit status 8 npm ERR! npm ERR! Failed at the log.io@0.3.3 postinstall script. npm ERR! This is most likely a problem with the log.io package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! cake ensure:configuration npm ERR! You can get their info via: npm ERR! npm owner ls log.io npm ERR! There is likely additional logging output above. npm ERR! System Darwin 13.1.0 npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "log.io" "--user" "matthewyu" npm ERR! cwd /Users/matthewyu/dev/act-proj/proj npm ERR! node -v v0.10.28 npm ERR! npm -v 1.4.9 npm ERR! code ELIFECYCLE npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /Users/matthewyu/dev/act-proj/proj/npm-debug.log npm ERR! not ok code 0 ------anybody encountered with the same problem?
kerem closed this issue 2026-02-26 05:31:19 +03:00
Author
Owner

@needforspeed commented on GitHub (Jul 16, 2014):

try touch the 3 configuration files, and then install

touch /var/root/.log.io/harvester.conf
touch /var/root/.log.io/log_server.conf
touch /var/root/.log.io/web_server.conf
<!-- gh-comment-id:49168425 --> @needforspeed commented on GitHub (Jul 16, 2014): try touch the 3 configuration files, and then install ``` touch /var/root/.log.io/harvester.conf touch /var/root/.log.io/log_server.conf touch /var/root/.log.io/web_server.conf ```
Author
Owner

@wehtta commented on GitHub (Jul 24, 2014):

it seems npm can not both write to /usr/local/lib/node-modules and ~./ , so i changed the owner the globally installed node modules directory to current user, and successfully installed.

<!-- gh-comment-id:49958606 --> @wehtta commented on GitHub (Jul 24, 2014): it seems npm can not both write to /usr/local/lib/node-modules and ~./ , so i changed the owner the globally installed node modules directory to current user, and successfully installed.
Author
Owner

@msmathers commented on GitHub (Aug 1, 2014):

If you're attempting to do a global install, it's best to install as root instead of a custom user. It can also be installed and run entirely in your user space:

cd ~
npm install log.io
./node_modules/log.io/bin/log.io-server
<!-- gh-comment-id:50851210 --> @msmathers commented on GitHub (Aug 1, 2014): If you're attempting to do a global install, it's best to install as root instead of a custom user. It can also be installed and run entirely in your user space: ``` cd ~ npm install log.io ./node_modules/log.io/bin/log.io-server ```
Author
Owner

@xbsd commented on GitHub (Sep 3, 2015):

Make sure you are in node_modules as the pwd owner. Some log in case it helps ---

$:~ xbsd$ cd /usr/local/lib/node_modules/
$:node_modules xbsd$ npm install log.io

> contextify@0.1.14 install /usr/local/lib/node_modules/log.io/node_modules/jquery/node_modules/contextify
> node-gyp rebuild

  CXX(target) Release/obj.target/contextify/src/contextify.o
  SOLINK_MODULE(target) Release/contextify.node
  SOLINK_MODULE(target) Release/contextify.node: Finished

> ws@0.4.32 install /usr/local/lib/node_modules/log.io/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)

  CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
  SOLINK_MODULE(target) Release/bufferutil.node
  SOLINK_MODULE(target) Release/bufferutil.node: Finished
  CXX(target) Release/obj.target/validation/src/validation.o
  SOLINK_MODULE(target) Release/validation.node
  SOLINK_MODULE(target) Release/validation.node: Finished

> ws@0.4.32 install /usr/local/lib/node_modules/log.io/node_modules/socket.io-client/node_modules/ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)

  CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
  SOLINK_MODULE(target) Release/bufferutil.node
  SOLINK_MODULE(target) Release/bufferutil.node: Finished
  CXX(target) Release/obj.target/validation/src/validation.o
  SOLINK_MODULE(target) Release/validation.node
  SOLINK_MODULE(target) Release/validation.node: Finished

> log.io@0.3.4 postinstall /usr/local/lib/node_modules/log.io
> cake ensure:configuration

Creating ~/.log.io/ for configuration files.
If this fails, run npm using a specific user: npm install -g log.io --user 'ubuntu'
log.io@0.3.4 log.io
├── backbone@0.9.10
├── underscore@1.4.4
├── coffee-script@1.4.0
├── jquery-browserify@1.8.1
├── winston@0.6.2 (cycle@1.0.3, stack-trace@0.0.9, eyes@0.1.8, colors@0.6.2, pkginfo@0.2.3, async@0.1.22, request@2.9.203)
├── express@3.0.6 (methods@0.0.1, fresh@0.1.0, range-parser@0.0.4, cookie-signature@0.0.1, buffer-crc32@0.1.1, cookie@0.0.5, commander@0.6.1, mkdirp@0.3.3, debug@2.2.0, send@0.1.0, connect@2.7.2)
├── jquery@1.8.3 (navigator@1.0.1, location@0.0.1, xmlhttprequest@1.4.2, htmlparser@1.7.6, contextify@0.1.14, jsdom@0.2.19)
├── socket.io@0.9.17 (base64id@0.1.0, policyfile@0.0.4, redis@0.7.3, socket.io-client@0.9.16)
└── socket.io-client@0.9.17 (xmlhttprequest@1.4.2, uglify-js@1.2.5, active-x-obfuscator@0.0.1, ws@0.4.32)

Rajs-MacBook-Pro:node_modules xbsd$ ls
coffee-script   grunt-cli   inherits    log.io      npm
<!-- gh-comment-id:137289866 --> @xbsd commented on GitHub (Sep 3, 2015): Make sure you are in node_modules as the pwd owner. Some log in case it helps --- ``` $:~ xbsd$ cd /usr/local/lib/node_modules/ $:node_modules xbsd$ npm install log.io > contextify@0.1.14 install /usr/local/lib/node_modules/log.io/node_modules/jquery/node_modules/contextify > node-gyp rebuild CXX(target) Release/obj.target/contextify/src/contextify.o SOLINK_MODULE(target) Release/contextify.node SOLINK_MODULE(target) Release/contextify.node: Finished > ws@0.4.32 install /usr/local/lib/node_modules/log.io/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws > (node-gyp rebuild 2> builderror.log) || (exit 0) CXX(target) Release/obj.target/bufferutil/src/bufferutil.o SOLINK_MODULE(target) Release/bufferutil.node SOLINK_MODULE(target) Release/bufferutil.node: Finished CXX(target) Release/obj.target/validation/src/validation.o SOLINK_MODULE(target) Release/validation.node SOLINK_MODULE(target) Release/validation.node: Finished > ws@0.4.32 install /usr/local/lib/node_modules/log.io/node_modules/socket.io-client/node_modules/ws > (node-gyp rebuild 2> builderror.log) || (exit 0) CXX(target) Release/obj.target/bufferutil/src/bufferutil.o SOLINK_MODULE(target) Release/bufferutil.node SOLINK_MODULE(target) Release/bufferutil.node: Finished CXX(target) Release/obj.target/validation/src/validation.o SOLINK_MODULE(target) Release/validation.node SOLINK_MODULE(target) Release/validation.node: Finished > log.io@0.3.4 postinstall /usr/local/lib/node_modules/log.io > cake ensure:configuration Creating ~/.log.io/ for configuration files. If this fails, run npm using a specific user: npm install -g log.io --user 'ubuntu' log.io@0.3.4 log.io ├── backbone@0.9.10 ├── underscore@1.4.4 ├── coffee-script@1.4.0 ├── jquery-browserify@1.8.1 ├── winston@0.6.2 (cycle@1.0.3, stack-trace@0.0.9, eyes@0.1.8, colors@0.6.2, pkginfo@0.2.3, async@0.1.22, request@2.9.203) ├── express@3.0.6 (methods@0.0.1, fresh@0.1.0, range-parser@0.0.4, cookie-signature@0.0.1, buffer-crc32@0.1.1, cookie@0.0.5, commander@0.6.1, mkdirp@0.3.3, debug@2.2.0, send@0.1.0, connect@2.7.2) ├── jquery@1.8.3 (navigator@1.0.1, location@0.0.1, xmlhttprequest@1.4.2, htmlparser@1.7.6, contextify@0.1.14, jsdom@0.2.19) ├── socket.io@0.9.17 (base64id@0.1.0, policyfile@0.0.4, redis@0.7.3, socket.io-client@0.9.16) └── socket.io-client@0.9.17 (xmlhttprequest@1.4.2, uglify-js@1.2.5, active-x-obfuscator@0.0.1, ws@0.4.32) Rajs-MacBook-Pro:node_modules xbsd$ ls coffee-script grunt-cli inherits log.io npm ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/log.io-NarrativeScience-old#94
No description provided.