Skip to content
This repository has been archived by the owner on Jun 18, 2023. It is now read-only.

ENOENT error #56

Closed
Berkmann18 opened this issue Jan 23, 2018 · 4 comments
Closed

ENOENT error #56

Berkmann18 opened this issue Jan 23, 2018 · 4 comments

Comments

@Berkmann18
Copy link

Problem

I'm trying to run this package as an NPM script ("mincss": "uglifycss --ugly-comments") but whenever I do that it fails in finding the files I'm passing to it.
Oddly enough, using the absolute path (../node_modules/uglifycss/uglifycss) works.

System

ArchLinux 4.13 x64
NPM version: 5.6.0
Node version: 9.4.0
uglifycss: 0.0.27 (latest version as I write this).

@fmarcia
Copy link
Owner

fmarcia commented Feb 7, 2018

Did you try to install uglifycss globally, i.e. with -p parameter?

@Berkmann18
Copy link
Author

No, as I've only installed it locally.

@fmarcia
Copy link
Owner

fmarcia commented Feb 10, 2018

If uglifycss is not in your path (i.e. in directories echo $PATH | sed s/:/\\n/g will list), npm will not find it and you'll have to use a complete path, like you did.

@fmarcia fmarcia closed this as completed Feb 10, 2018
@Berkmann18
Copy link
Author

Sounds like you need to implement a support for local usage then. I'll possibly use it globally but some might not and face the same issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants