beautifier / js-beautify

Beautifier for javascript
https://beautifier.io
MIT License
8.61k stars 1.39k forks source link

Installing js-beautify fails #1247

Closed danrot closed 7 years ago

danrot commented 7 years ago

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.

tnt commented 7 years ago

Same same – older version as suggested works.

leonf-tech commented 7 years ago

I try the add the "js-beautify": "1.6.14" in the not only "dependencies" also "devDependencies" , but they don't work!

littlephild commented 7 years ago

This worked for me

npm install -g npm

Then

npm install js-beautify@1.6.14

synweap15 commented 7 years ago

Broken here as well

darren-dev commented 7 years ago

As stated here multiple times - use the older version of js-beautify npm install js-beautify@1.6.14

Stop with the +1 so people can easily see the solution while the poor dev tries to fix things

beusekampers commented 7 years ago

This worked for me

rm -rf node_modules/ npm install js-beautify@1.6.14 npm install npm install cross-env npm run dev

miguelpedregosa commented 7 years ago

Just the day I started with vue-cli xD

mwakaambrose commented 7 years ago

What caused this problem? It still doesn't work for me with webpack builds. Am fucked.

EdByrnee commented 7 years ago

sequelize-cli broken as a result of this issue

pirupius commented 7 years ago

can't believe this issue has cost me 3 hours of my life :rage:

mwakaambrose commented 7 years ago

This worked yea,

rm -rf node_modules/
npm install js-beautify@1.6.14
npm install
npm install cross-env
npm run dev
ywxgod commented 7 years ago

Me too. still doesn't work.

Marascon commented 7 years ago

Tried one of the above, solutions by locking the version

Groot90 commented 7 years ago

+1 Not working for me too.

haitincjg2012 commented 7 years ago

+1 Not working for me too.

yangdan8 commented 7 years ago

昨晚上开始的

keng0o commented 7 years ago

me too in Japan

Luoxinfang commented 7 years ago

+1 nuxt can not install ! fucked me a day!

YevheniiHerasymchuk commented 7 years ago

Stop fucking this issue!!!) Let's create a PR, devs!

kallebornemark commented 7 years ago

@vivian-xu Tried it, getting the same error.

rohilv commented 7 years ago

we are fucked...

bmuenzenmeyer commented 7 years ago

@YevheniiHerasymchuk there is one, https://github.com/beautify-web/js-beautify/pull/1251

everyone stop

floriandorre commented 7 years ago

Does someone have a working solution (to install vue-cli) ?

igorescobar commented 7 years ago

If you are facing issues because of a global dependency like me, make sure to install as follows:

RUN npm set progress=false && \
    npm install -g js-beautify@1.6.14 pm2@2.5 jake@8.0.15 sequelize-cli@2.8.0

Having multiple RUN statements won't so install everything in one.

huysh3 commented 7 years ago

@floriandorre npm install -g vue-cli --registry=https://registry.npm.taobao.org I resolve by this

floriandorre commented 7 years ago

@huysh3 i tried and have the same issue

dohomi commented 7 years ago

I'm trying all the above hacks but nothing worked so far. I try to deploy my app with now and the webpack build fails:

Module build failed: Error: Cannot find module './lib/beautify'

I added the resolution to package.json without success. Any other idea what to add?

cryptixcoder commented 7 years ago

This issue is breaking the laravel npm install as well...

xiety commented 7 years ago

As a temporary workaround I've manually replaced files in vue-loader\node_modules\js-beautify with 1.6.14 version

frrrnd commented 7 years ago

nothing works 🙄

MarkDavidTurner commented 7 years ago

Hi Guys,

So theres files missing in the actual package. Just add these files into the js folder Archive.zip

JonSnow-JY commented 7 years ago

I got nothing

Luoxinfang commented 7 years ago

we sovled it by change the vertion at yarn.lock and install angain, and it worked! out of fucking,🤔

LiqunHu commented 7 years ago

hopelesss, fucked by the issue.

floriandorre commented 7 years ago

the issue i have is that i can't install vue-cli not just js-beautify.... i can get js-beautify with your solution but i still not have vue-cli

jeremycab commented 7 years ago

+1 :-1:

freedomlang commented 7 years ago

clear cache and reinstall 1.6.14

FrancescoMussi commented 7 years ago

It looks like somebody got a good story to tell when will be a grandpa: "That day when I screwed up the whole programming world"

efecantaslak commented 7 years ago

You broke whole thing :1st_place_medal:

frrrnd commented 7 years ago

js-horrorify.

hushicai commented 7 years ago

use yarn instead...

aksappy commented 7 years ago

Go to https://yarnpkg.com/lang/en/docs/install/ Install Yarn Execute yarn global add vue-cli

Husky110 commented 7 years ago

which doesn't help with laravel... :D

efecantaslak commented 7 years ago

When will this problem be resolved? :(

kyr0 commented 7 years ago

When they find someone who has the permission to merge PR's... https://github.com/beautify-web/js-beautify/pull/1251

aksappy commented 7 years ago

@bitwiseman @evocateur @einars Annotating three top contributors if that helps

littlephild commented 7 years ago

This issue made my day

schoening commented 7 years ago

This is the most monday of any monday I have had for a long time.

efecantaslak commented 7 years ago

Me too @littlephild

cole-gillespie commented 7 years ago

fuck it im switching everything to perl