M
M
MUTOgen4eg2014-12-27 16:40:31
Node.js
MUTOgen4eg, 2014-12-27 16:40:31

NPM, why doesn't the minify package work?

Good evening everyone.
Ran into a strange issue while installing minify via npm.
It is needed for processing js and css packs from the command line.
Locally everything is ok. npm install -g minifyand everything works without problems. On CentOS, after installing nodejs, npm and minify, the latter works crookedly. For example, the simplest minify -vproduces

/usr/lib/node_modules/minify/bin/minify.js:24
        files       = Util.slice(Argv, 2),
                           ^
TypeError: Object #<UtilProto> has no method 'slice'
    at /usr/lib/node_modules/minify/bin/minify.js:24:28
    at Object.<anonymous> (/usr/lib/node_modules/minify/bin/minify.js:103:3)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:906:3

At the same time, node_modules/minify/node_modules/util-ioeverything looks normal. With what it can be connected?
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Kitmanov, 2014-12-27
@k12th

Do you also have a centos of the same version locally?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question