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

Can't install aglio #345

Open
mleroyy opened this issue Nov 24, 2017 · 1 comment
Open

Can't install aglio #345

mleroyy opened this issue Nov 24, 2017 · 1 comment
Labels

Comments

@mleroyy
Copy link

mleroyy commented Nov 24, 2017

Hi ! I have troubles installing agile with my configuration. I don't really know what to do. Can you help ?

➜  ~ sudo npm install -g aglio
Password:
npm WARN deprecated [email protected]: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated [email protected]: Deprecated, use jstransformer
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
/usr/local/bin/aglio -> /usr/local/lib/node_modules/aglio/bin/aglio.js

> [email protected] install /usr/local/lib/node_modules/aglio/node_modules/fsevents
> node install

shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
path.js:1180
          cwd = process.cwd();
                        ^

Error: EACCES: permission denied, uv_cwd
    at Object.resolve (path.js:1180:25)
    at startup (bootstrap_node.js:172:32)
    at bootstrap_node.js:613:3

> [email protected] install /usr/local/lib/node_modules/aglio/node_modules/protagonist
> node-gyp rebuild

shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
sh: node-gyp: command not found

> [email protected] postinstall /usr/local/lib/node_modules/aglio/node_modules/aglio-theme-olio
> node scripts/setup-cache.js

shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
path.js:1180
          cwd = process.cwd();
                        ^

Error: EACCES: permission denied, uv_cwd
    at Object.resolve (path.js:1180:25)
    at startup (bootstrap_node.js:172:32)
    at bootstrap_node.js:613:3
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/aglio/node_modules/fsevents):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: `node install`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/aglio/node_modules/protagonist):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: `node-gyp rebuild`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: spawn ENOENT

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: `node scripts/setup-cache.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/mathieuleroy/.npm/_logs/2017-11-24T01_21_12_402Z-debug.log
@zoe-edwards
Copy link

zoe-edwards commented Jan 25, 2018

What are the permissions of your node_modules directory?

Run:

ls -l /usr/local/lib

Then look for something like this:

drwxr-xr-x   8 myname  admin  272 25 Jan 12:30 node_modules

(it'll be near the bottom probably)

The first part of the row are the permissions, and the myname and admin are the owners (user and group). Let us know what they are and we can try and help from there.

@Gasol Gasol added the question label Jun 5, 2019
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