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.

Last version of js-beautify breaks vue-cli installation

See original GitHub issue

Steps to reproduce:

Run npm i -g vue-cli in terminal

Expected behavior:

vue-cli should install

Actual behavior:

The installation fails and this error is logged:

error path C:\Users\<my-user-folder>\AppData\Roaming\npm\node_modules\vue-cli\node_modules\js-beautify\js\bin\css-beautify.js
error code ENOENT
error errno -4058
error syscall chmod
error enoent ENOENT: no such file or directory, chmod 'C:\Users\<my-user-folder>\AppData\Roaming\npm\node_modules\vue-cli\node_modules\js-beautify\js\bin\css-beautify.js'
error enoent This is most likely not a problem with npm itself
error enoent and is related to npm not being able to find a file.

Notes:

An issue has already been opened in js-beautify repo: https://github.com/beautify-web/js-beautify/issues/1247

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:9
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

10reactions
jddxfcommented, Sep 18, 2017

For a quick fix, you can install yarn and run yarn global add vue-cli.

4reactions
LinusBorgcommented, Sep 18, 2017

Seems this has to be solved in js-beautify. Good to know that yarn seems to work, though I wonder why.

Read more comments on GitHub >

github_iconTop Results From Across the Web

js-beautify - npm
Latest version : 1.14.7, last published: 2 months ago. Start using js-beautify in your ... You may install the NPM package js-beautify ....
Read more >
Installation | Vue CLI
Vue CLI 4.x requires Node.js version 8.9 or above (v10+ recommended). ... To install the new package, use one of the following commands....
Read more >
How to Setup Vue.js with VS Code and Fix Formatting and ES ...
When you create a Vue. js project with the Vue CLI or UI and select Prettier - you'll have a bunch of ES...
Read more >
NPM: npm peer dependency conflict - vue.js - Stack Overflow
Same issue here. It occurs only on newer versions of npm. You can temporarily fix it by falling back on the LTS 14.15...
Read more >
Vue.js | WebStorm Documentation - JetBrains
Alternatively, for npm version 5.1 and earlier, install the package yourself by running npm install --g create-vue or npm install --g @vue/cli ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

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