Last version of js-beautify breaks vue-cli installation
See original GitHub issueSteps 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:
- Created 6 years ago
- Reactions:9
- Comments:13 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For a quick fix, you can install yarn and run
yarn global add vue-cli
.Seems this has to be solved in js-beautify. Good to know that yarn seems to work, though I wonder why.