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

Error installing mlproj #10

Closed
willsthompson opened this issue Nov 6, 2018 · 6 comments
Closed

Error installing mlproj #10

willsthompson opened this issue Nov 6, 2018 · 6 comments
Assignees
Labels
install Anything related to the install process (problems, doc, ideas...)

Comments

@willsthompson
Copy link

I followed the instructions to install from the EXPath Console readme: sudo npm install mlproj -g, and several errors occurred:

sudo npm install mlproj -g
node-pre-gyp WARN Pre-built binaries not installable for [email protected] and [email protected] (node-v67 ABI, unknown) (falling back to source compile with node-gyp) 
node-pre-gyp WARN Hit error EACCES: permission denied, mkdir '/Users/willthompson/.nvm/versions/node/v11.1.0/lib/node_modules/mlproj/node_modules/fsevents/lib/binding/Release/node-v67-darwin-x64' 
gyp ERR! clean error 
gyp ERR! stack Error: EACCES: permission denied, rmdir 'build'
...

I'm on a Mac running macOS 10.13, and my npm --version => 6.4.1. I was only able to get it to install after finding an issue for similar problem on a different package, and used this command:

sudo npm i -g mlproj --unsafe-perm=true --allow-root
@fgeorges
Copy link
Owner

fgeorges commented Nov 7, 2018

Hi @willsthompson. Thank you for reporting this!

Unfortunately I cannot reproduce the problem on my own Mac. Also, I am not sure why the ML Console mentions sudo in that command (which is different from http://mlproj.org/doc/install).

  • remove sudo from ML Console install doc
  • add your solution/workaround above in the mlproj install doc
  • add the link below (about EACCES) in the mlproj install doc
  • add a link to the mlproj install doc in the ML Console install doc
  • do the same changes as in ML Console install doc, in the MLC website

Extra note. The following link on the npm website starts with "If you see an EACCES error when you try to install a package globally, read this chapter" : https://docs.npmjs.com/getting-started/fixing-npm-permissions.

@fgeorges fgeorges self-assigned this Nov 7, 2018
@fgeorges fgeorges added the install Anything related to the install process (problems, doc, ideas...) label Nov 7, 2018
@fgeorges
Copy link
Owner

fgeorges commented Nov 7, 2018

Also, here is a thread with info that seems related more closely to your exact problem: nodejs/node-gyp#454 (comment).

fgeorges added a commit to fgeorges/mlproj-web that referenced this issue Nov 7, 2018
@fgeorges
Copy link
Owner

fgeorges commented Nov 7, 2018

Done now. This is all I can do as this is not an mlproj problem, but rather an NPM setup issue.

Note that the above comment mentions the MLC website, which has not been announced yet, but will replace the README file, eventually: http://mlconsole.org/.

@fgeorges fgeorges closed this as completed Nov 7, 2018
@willsthompson
Copy link
Author

willsthompson commented Nov 7, 2018

Thanks @fgeorges! I read the article on EACCES, and I am actually installing Node via nvm as it recommends, but I have installed nvm with Homebrew, which I suspect is the problem. If there were a better way to do it via Homebrew I would, but I'm pretty committed to having everything managed by an OS package manager (I don't know if MacPorts has the same problem). I realize this is not your problem, but a Node problem, of which there are many :)

@willsthompson
Copy link
Author

One more update (for anyone who stumbles across this issue down the road). After wiping mlproj and nvm (and Node, etc) packages, updating and cleaning up any warnings from Homebrew, and reinstalling nvm, then mlproj without sudo, everything seems to be working fine now. Thanks again.

@fgeorges
Copy link
Owner

Just a quick note that the initial issue was because of a dependency (of a dependency...), that has just been removed (I replaced chokidar by node-watch, which has 0 dependency, and actually works on Windows as well).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
install Anything related to the install process (problems, doc, ideas...)
Projects
None yet
Development

No branches or pull requests

2 participants