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

Comments

Projects
None yet
@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

This comment has been minimized.

Copy link

IvanFan commented Sep 18, 2017

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

@danrot

This comment has been minimized.

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

This comment has been minimized.

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

This comment has been minimized.

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

This comment has been minimized.

Copy link

summer11 commented Sep 18, 2017

we are fucked...

1 similar comment
@luckyyyyy

This comment has been minimized.

Copy link

luckyyyyy commented Sep 18, 2017

we are fucked...

@wh1100717

This comment has been minimized.

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

This comment has been minimized.

Copy link

richhauck commented Sep 18, 2017

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

@zuolin777

This comment has been minimized.

Copy link

zuolin777 commented Sep 18, 2017

we are fucked

@IvanFan

This comment has been minimized.

Copy link

IvanFan commented Sep 18, 2017

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

@zuolin777

This comment has been minimized.

Copy link

zuolin777 commented Sep 18, 2017

@IvanFan webpack

@danrot

This comment has been minimized.

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

This comment has been minimized.

Copy link

inonbaguio commented Sep 18, 2017

{
    "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

@zuolin777

This comment has been minimized.

Copy link

zuolin777 commented Sep 18, 2017

@danrot how do I fix webpack ?

@IvanFan

This comment has been minimized.

Copy link

IvanFan commented Sep 18, 2017

works thx @danrot :)

@benjamin658

This comment has been minimized.

Copy link

benjamin658 commented Sep 18, 2017

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

@guoliangli123

This comment has been minimized.

Copy link

guoliangli123 commented Sep 18, 2017

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

@zuolin777

This comment has been minimized.

Copy link

zuolin777 commented Sep 18, 2017

@benjamin658 thx, it works

@brianmay

This comment has been minimized.

Copy link

brianmay commented Sep 18, 2017

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

This comment has been minimized.

Copy link

RamonSmit commented Sep 18, 2017

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

This comment has been minimized.

Copy link

Ar4ics commented Sep 18, 2017

vue-cli fails to install

@achilleas01

This comment has been minimized.

Copy link

achilleas01 commented Sep 18, 2017

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

@danrot

This comment has been minimized.

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

This comment has been minimized.

Copy link

rrandom commented Sep 18, 2017

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

@gracefullight

This comment has been minimized.

Copy link

gracefullight commented Sep 18, 2017

I can't install vue-cli itself 2

@kaidiren

This comment has been minimized.

Copy link

kaidiren commented Sep 18, 2017

npm install js-beautify@1.6.14 success.

npm install js-beautify@1.7.0 failed.

@01BTC10

This comment has been minimized.

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

This comment has been minimized.

Copy link

oronoa commented Sep 18, 2017

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

@munir131

This comment has been minimized.

Copy link

munir131 commented Sep 18, 2017

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

@beautify-web beautify-web deleted a comment from WindieChai Sep 18, 2017

@beautify-web beautify-web deleted a comment from liujianglc Sep 18, 2017

@beautify-web beautify-web deleted a comment from Jacky-Lau Sep 18, 2017

@beautify-web beautify-web deleted a comment from crli Sep 18, 2017

@beautify-web beautify-web deleted a comment from webyonet Sep 18, 2017

@beautify-web beautify-web deleted a comment from czy88840616 Sep 18, 2017

@beautify-web beautify-web deleted a comment from fattydevelop Sep 18, 2017

@beautify-web beautify-web deleted a comment from slickspaces Sep 18, 2017

@beautify-web beautify-web deleted a comment from lleng13 Sep 18, 2017

@beautify-web beautify-web deleted a comment from oimou Sep 18, 2017

@beautify-web beautify-web deleted a comment from frankLife Sep 18, 2017

@beautify-web beautify-web deleted a comment from lishengzxc Sep 18, 2017

@beautify-web beautify-web deleted a comment from zivyangll Sep 18, 2017

@beautify-web beautify-web deleted a comment from mofengfly Sep 18, 2017

@beautify-web beautify-web deleted a comment from anchengjian Sep 18, 2017

@beautify-web beautify-web deleted a comment from Houfeng Sep 18, 2017

@beautify-web beautify-web deleted a comment from hubcarl Sep 18, 2017

@beautify-web beautify-web deleted a comment from kaidiren Sep 18, 2017

@beautify-web beautify-web deleted a comment from oronoa Sep 18, 2017

@beautify-web beautify-web deleted a comment from munir131 Sep 18, 2017

@beautify-web beautify-web deleted a comment from sivaah Sep 18, 2017

@beautify-web beautify-web deleted a comment from Ar4ics Sep 18, 2017

@beautify-web beautify-web deleted a comment from VladimirMorin Sep 18, 2017

@beautify-web beautify-web deleted a comment from smallos Sep 18, 2017

@beautify-web beautify-web deleted a comment from rainfore Sep 18, 2017

@beautify-web beautify-web deleted a comment from JinboMa Sep 18, 2017

@beautify-web beautify-web deleted a comment from irasikhin Sep 18, 2017

@beautify-web beautify-web deleted a comment from pjar Sep 18, 2017

@beautify-web beautify-web 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.