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

Installing js-beautify fails #1247

Closed
danrot opened this issue Sep 18, 2017 · 249 comments · Fixed by #1251
Closed

Installing js-beautify fails #1247

danrot opened this issue Sep 18, 2017 · 249 comments · Fixed by #1251
Milestone

Comments

@danrot
Copy link

danrot commented Sep 18, 2017

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.

@IvanFan
Copy link

IvanFan commented Sep 18, 2017

me 2 we are preparing the latest update and now we fucked...

@danrot
Copy link
Author

danrot commented 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.

@IvanFan
Copy link

IvanFan commented Sep 18, 2017

We are using some third-party npm packages which are using js-beautify...
Any idea how to force other dependencies to use the old version?

@danrot
Copy link
Author

danrot commented 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 ^.

@summer11
Copy link

we are fucked...

1 similar comment
@luckyyyyy
Copy link

we are fucked...

@wh1100717
Copy link
Contributor

wh1100717 commented Sep 18, 2017

we are fucked...

js-beautify@1.7.0 breaks the project installation and trying to use the lower version 1.6.14 for solving this issue

@richhauck
Copy link

Just found this. vue-cli is breaking as a result.

@leo-yt
Copy link

leo-yt commented Sep 18, 2017

we are fucked

@IvanFan
Copy link

IvanFan commented Sep 18, 2017

I think some npm packages are using "js-beautify": "^1.6.14" at the moment...

@leo-yt
Copy link

leo-yt commented Sep 18, 2017

@IvanFan webpack

@danrot
Copy link
Author

danrot commented Sep 18, 2017

@IvanFan Doesn't matter, if your project defines it without ^ it will install exactly this version. ^1.6.14 means >= 1.6.14 && < 2.0, so it "works" with every of these versions.

@inonbaguio
Copy link

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

Adding this into the dependencies solved the build in our CI, should be good for a temporary fix. Thanks @danrot

@leo-yt
Copy link

leo-yt commented Sep 18, 2017

@danrot how do I fix webpack ?

@IvanFan
Copy link

IvanFan commented Sep 18, 2017

works thx @danrot :)

@benjamin658
Copy link

@zuolin777 You don't have to, just add "js-beautify": "1.6.14" into your package.json dependencies, then it should work.

@guoliangli123
Copy link

we are fucked!!!!
i can't work now.

@leo-yt
Copy link

leo-yt commented Sep 18, 2017

@benjamin658 thx, it works

@brianmay
Copy link

This bug report is only just over 30 minutes old for an upload that is only 1 hour old. How about giving the poor developer a chance to fix it? Or even better, providing a pull request to fix it?

@RamonSmit
Copy link

Be my guest to make a PR. This is just a notification to the dev to show what the impact is of this issue.

@Ar4ics
Copy link

Ar4ics commented Sep 18, 2017

vue-cli fails to install

@achilleas01
Copy link

vue-cli npm install works well if you add dependency in package.json
"js-beautify": "1.6.14",

@danrot
Copy link
Author

danrot commented Sep 18, 2017

@brianmay Finally somebody reasonable... It's not like we all have to stop working now, the temporary fix is quite easy.

My guess would also be that this library is primarily maintained in the spare time of the contributors, and I don't think that the attitude in this issue is very motivating... So I'd like to say thank you for the great work, and in advance for fixing this issue 😃

@rrandom
Copy link

rrandom commented Sep 18, 2017

The problem is that I can't install vue-cli itself..

@gracefullight
Copy link

I can't install vue-cli itself 2

@kaidiren
Copy link

npm install js-beautify@1.6.14 success.

npm install js-beautify@1.7.0 failed.

@01BTC10
Copy link

01BTC10 commented Sep 18, 2017

Temporary fix https://npm.r2net.pro/#/detail/js-beautify or you can checkout tag v1.6.14 then host it locally.

@oronoa
Copy link

oronoa commented Sep 18, 2017

But what to do with other packages that depend on this pack?

@munir131
Copy link

@oronoa Add this package in your package.json with version lock for 1.6.14. It will override others.

@beautifier beautifier deleted a comment from WindieChai Sep 18, 2017
@beautifier beautifier deleted a comment from liujianglc Sep 18, 2017
@beautifier beautifier deleted a comment from Jacky-Lau Sep 18, 2017
@beautifier beautifier deleted a comment from crli Sep 18, 2017
@beautifier beautifier deleted a comment from webyonet Sep 18, 2017
@beautifier beautifier deleted a comment from czy88840616 Sep 18, 2017
@beautifier beautifier deleted a comment from fattydevelop Sep 18, 2017
@beautifier beautifier deleted a comment from slickspaces Sep 18, 2017
@beautifier beautifier deleted a comment from lleng13 Sep 18, 2017
@beautifier beautifier deleted a comment from oimou Sep 18, 2017
@beautifier beautifier deleted a comment from frankLife Sep 18, 2017
@beautifier beautifier deleted a comment from lishengzxc Sep 18, 2017
@beautifier beautifier deleted a comment from zivyangll Sep 18, 2017
@beautifier beautifier deleted a comment from mofengfly Sep 18, 2017
@beautifier beautifier deleted a comment from anchengjian Sep 18, 2017
@beautifier beautifier deleted a comment from Houfeng Sep 18, 2017
@beautifier beautifier deleted a comment from hubcarl Sep 18, 2017
@beautifier beautifier deleted a comment from kaidiren Sep 18, 2017
@beautifier beautifier deleted a comment from oronoa Sep 18, 2017
@beautifier beautifier deleted a comment from munir131 Sep 18, 2017
@beautifier beautifier deleted a comment from sivaah Sep 18, 2017
@beautifier beautifier deleted a comment from Ar4ics Sep 18, 2017
@beautifier beautifier deleted a comment from VladimirMorin Sep 18, 2017
@beautifier beautifier deleted a comment from smallos Sep 18, 2017
@beautifier beautifier deleted a comment from z-ZYS-s Sep 18, 2017
@beautifier beautifier deleted a comment from JinboMa Sep 18, 2017
@beautifier beautifier deleted a comment from irasikhin Sep 18, 2017
@beautifier beautifier deleted a comment from pjar Sep 18, 2017
@beautifier beautifier deleted a comment from ustbhuangyi Sep 18, 2017
@bitwiseman bitwiseman added this to the v1.7.3 milestone Sep 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.