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

permit local installations #86

Open
phra opened this issue Apr 25, 2017 · 3 comments
Open

permit local installations #86

phra opened this issue Apr 25, 2017 · 3 comments
Labels

Comments

@phra
Copy link

phra commented Apr 25, 2017

hi,

i'm trying to locally install create-graphql via yarn but i receive this error:

npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "i" "-g" "generator-graphql"
npm ERR! node v7.9.0
npm ERR! npm  v4.2.0
npm ERR! path /usr/local/lib/node_modules
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access

npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules'
npm ERR!  { Error: EACCES: permission denied, access '/usr/local/lib/node_modules'
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'access',
npm ERR!   path: '/usr/local/lib/node_modules' }
npm ERR! 
npm ERR! Please try running this command again as root/Administrator.

it would be nice to avoid every reference to global packages in order to install create-graphql globally o locally.

@sibelius
Copy link
Collaborator

could you tried to use NVM or something like it? it makes installing global packages without need for root access

@phra
Copy link
Author

phra commented Apr 26, 2017

you just have to use the existing dependencies system of npm modules instead of running arbitrary commands on the host machine to install required deps. please move generator-graphql as dep or peerDep and fix this.

@lucasbento
Copy link
Collaborator

@phra: our current structure runs this way because we have a CLI tool that abstracts the use of Yeoman.

We are going to improve that on our next major version that is focused on supporting plugins and parsing ASTs the same way that Babel does.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants