question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`sudo npm install -g @frctl/fractal` fails at css-beautify.js

See original GitHub issue

Hi,

I wanted to setup fractal on my Mac (10.12) and came across some error I cannot source. After running sudo npm install -g @frctl/fractal the process fails with the following output:

npm verb stack Error: ENOENT: no such file or directory, chmod ‘/usr/local/lib/node_modules/@frctl/fractal/node_modules/js-beautify/js/bin/css-beautify.js’ npm verb stack at Error (native) npm verb cwd /Users/xx/Sites/xx.loc npm ERR! Darwin 16.7.0 npm ERR! argv “/usr/local/bin/node” “/usr/local/bin/npm” “install” “-g” “@frctl/fractal” “-verbose” npm ERR! node v6.11.3 npm ERR! npm v3.10.10 npm ERR! path /usr/local/lib/node_modules/@frctl/fractal/node_modules/js-beautify/js/bin/css-beautify.js npm ERR! code ENOENT npm ERR! errno -2 npm ERR! syscall chmod

npm ERR! enoent ENOENT: no such file or directory, chmod ‘/usr/local/lib/node_modules/@frctl/fractal/node_modules/js-beautify/js/bin/css-beautify.js’ npm ERR! enoent ENOENT: no such file or directory, chmod ‘/usr/local/lib/node_modules/@frctl/fractal/node_modules/js-beautify/js/bin/css-beautify.js’ npm ERR! enoent This is most likely not a problem with npm itself npm ERR! enoent and is related to npm not being able to find a file. npm ERR! enoent npm verb exit [ -2, true ]

The directory /usr/local/lib/node_modules/@frctl/fractal/node_modules/ is properly created during the process (… and gets deleted when the error pops). Any idea what the actual problem is? Note: I am behind a corporate proxy.

Best

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
dsiegel1commented, Sep 18, 2017

@dkhuntrods it works! Thanks a lot

1reaction
dkhuntrodscommented, Sep 18, 2017

@dsiegel1 I’ve released a new version, v1.1.6; can you let me know if that fixes it for you?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix npm throwing error without sudo - node.js
I installed node from the snap store but I could not run commands like npm install -g. But after trying the NVM solution...
Read more >
Installing js-beautify fails · Issue #1247 - GitHub
npm ERR! path /Users/daniel.rotter/Development/massiveart/sulu-minimal/vendor/sulu/sulu/node_modules/js-beautify/js/bin/css-beautify.js npm ...
Read more >
cssbeautify - npm
Start using cssbeautify in your project by running `npm i cssbeautify`. ... For the command-line use, install Node.js cssbeautify package.
Read more >
npm install fails if config.js is not configured before hand - Drupal
Actually, this is a documentation error but I am flagging as a bug because the installation actually fails if the readme.txt is followed ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found