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.

An error occurred while installing. Css-beautify.js

See original GitHub issue

node -v v8.4.0

npm -v 5.4.2

npm install vue-cli -g

... ...
npm ERR! path e:\nodejs\node_global\node_modules\vue-cli\node_modules\js-beautify\js\bin\css-beautify.js
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall chmod
npm ERR! enoent ENOENT: no such file or directory, chmod 'e:\nodejs\node_global\node_modules\vue-cli\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
... ...

image

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
gafungcommented, Sep 18, 2017

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
Read more comments on GitHub >

github_iconTop Results From Across the Web

`no such file or directory` While installing js beautify in npm
What can be done to solve this? I am using node 8.5.0 an npm 5.3.0. npm · js-beautify.
Read more >
js-beautify - npm
When installed globally, the beautifier provides an executable js-beautify script. The beautified result is sent to stdout unless otherwise ...
Read more >
React Es Lint - Elvenware
This will install eslint and prettier files in the current working directory (cwd). You can achieve the same effect by choosing c, d,...
Read more >
jQuery plugin development with Gulp automation | by Dipu Raj
You need Node installed on your development machine, if not, ... that helps to detect errors and potential problems in your JavaScript code ......
Read more >
gulp-cssbeautify - npm Package Health Analysis - Snyk
Ensure you're using the healthiest npm packages. Snyk scans all the packages in your projects for vulnerabilities and provides automated fix advice.
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