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.

Installing js-beautify fails

See original GitHub issue

Description

I am trying to install a library, which is dependant on this one, and starting today (I’ve tried the last week the last time) I get the following error when installing my dependencies:

npm ERR! path /Users/daniel.rotter/Development/massiveart/sulu-minimal/vendor/sulu/sulu/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 '/Users/daniel.rotter/Development/massiveart/sulu-minimal/vendor/sulu/sulu/node_modules/js-beautify/js/bin/css-beautify.js'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/daniel.rotter/.npm/_logs/2017-09-18T05_55_47_583Z-debug.log

It looks to me like this is somehow connected to the latest 1.7.0 release… Any ideas?

Steps to Reproduce

Create a new folder and install this library as dependency using npm install js-beautify.

Environment

OS: Mac OSX 10.11.6

Deleted most of the PR template, since it’s not relevant.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:288
  • Comments:249 (4 by maintainers)

github_iconTop GitHub Comments

66reactions
danrotcommented, Sep 18, 2017

@IvanFan I am sure other libraries haven’t updated to this version yet. So just add the following line to your dependencies:

{
    "dependencies": {
        "js-beautify": "1.6.14"
    }
}

Mind the missing ^.

54reactions
danrotcommented, Sep 18, 2017

@IvanFan fucked is a little bit exaggerating IMO… Just use npm install js-beautify@1.6.14 for now, that will work until a fix is released.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to install js-beautify - Stack Overflow
nvm is a node version manager. npm is the node package manager. You should use npm to install packages npm install js-beautify.
Read more >
js-beautify - npm
When installed globally, it provides an executable js-beautify script. As with the Python script, the beautified result is sent to stdout ...
Read more >
Bug #1901910 “package jsbeautifier (not installed) failed to ...
Hi, I'm new to the Linux ecosystem. When I updated to Ubuntu 20.04 version from 18.04 my terminal crashed and I was not...
Read more >
Black Beautifier - Unibeautify
Open the Terminal application. Show me how to open the Terminal. ... If which fails to return an executable path then you need...
Read more >
Glavin001/atom-beautify - Gitter
User root installs the package with no problem, however I can't seem to do so with ... but it uses JS Beautify by...
Read more >

github_iconTop Related Medium Post

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