Closed danrot closed 7 years ago
me 2 we are preparing the latest update and now we fucked...
@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.
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?
@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 ^
.
we are fucked...
we are fucked...
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
Just found this. vue-cli is breaking as a result.
we are fucked
I think some npm packages are using "js-beautify": "^1.6.14" at the moment...
@IvanFan webpack
@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.
{
"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
@danrot how do I fix webpack ?
works thx @danrot :)
@zuolin777 You don't have to, just add "js-beautify": "1.6.14" into your package.json dependencies, then it should work.
we are fucked!!!! i can't work now.
@benjamin658 thx, it works
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?
Be my guest to make a PR. This is just a notification to the dev to show what the impact is of this issue.
vue-cli fails to install
vue-cli npm install works well if you add dependency in package.json "js-beautify": "1.6.14",
@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 😃
The problem is that I can't install vue-cli itself..
I can't install vue-cli itself 2
npm install js-beautify@1.6.14
success.
npm install js-beautify@1.7.0
failed.
Temporary fix https://npm.r2net.pro/#/detail/js-beautify or you can checkout tag v1.6.14 then host it locally.
But what to do with other packages that depend on this pack?
@oronoa Add this package in your package.json with version lock for 1.6.14
. It will override others.
@danrot Thanks!
Temporary fix for vue-cli:
Do not install it globally but in a temp folder.
mkdir C:\vue_cli_temp
cd C:\vue_cli_temp
npm install js-beautify@1.6.14
npm install vue-cli
Then you can use the vue-cli installed like this:
C:\vue_cli_temp\node_modules\.bin\vue init simple MyVueProject
me too, this save me
npm install -g js-beautify@1.6.14
+1
edit: npm install --save js-beautify@1.6.14
worked
Thanks for suggestion to add "js-beautify": "1.6.14" to dependencies, saved my bacon while working with vuejs
Pushing code on a Sunday evening and going to sleep. Safe to say, Monday will be interesting to say the least.
@ArmandJ77 Which template are you using? I tried and retried and couldn't get it to work. Tried different node versions as well.
People, just add "js-beautify": "1.6.14" under dependencies in your package.json. I had a problem with the vue pwa template but this solves it. Don't panic ;-)
I guess yarn doesn't like this workaround.
@eric-naguras thank you eric
+1
Yarn would not even report an error, NPM did. So I'm dropping Yarn, back to NPM
I install vue-cli use cnpm。it tell me “ no such file or directory, chmod 'C:\Users\zxrnh\AppData\Roaming\npm\node_modules\vue-cli\node_modules_js-beautify@1.7.0@js-beautify\js\bin\css-beautify.js“
this is my code cnpm install -g vue-cli who can help you !
@sobrown See my comment above.
+1
😓
:sob:
+1
Noooooooooooooooooooooooooooooooo
+1
+1
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:
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.