aerogear / create-graphql

Command-line utility to build production-ready servers with GraphQL.
MIT License
440 stars 38 forks source link

Can't install #78

Closed jeggy closed 7 years ago

jeggy commented 7 years ago

I can't install this package on Ubuntu. Here's the output that I get: http://pastebin.com/AvCpM1Us

sibelius commented 7 years ago

Your user does not have permission access to node_modules folder, try to give permission to your user.

Or you should use a node version manager like NVM

felippepuhle commented 7 years ago

npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules'

It seems to be a permission problem, can you verify it?

jeggy commented 7 years ago

I know it's a permission problem, but I am running as root so I should have the right permission to it? not sure how to check that?

jeggy commented 7 years ago

Sorry, this isn't a create-graphql issue. just figured that I can't install any packages globally now, it worked previously, so I just gotta figure what I did...

jeggy commented 7 years ago

This fixed it. https://docs.npmjs.com/getting-started/fixing-npm-permissions

felippepuhle commented 7 years ago

I changed node_modules permission manually once and some bugs like this occurred. Glad that you fixed.