Answer the question
In order to leave comments, you need to log in
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 minify
and everything works without problems. On CentOS, after installing nodejs, npm and minify, the latter works crookedly. For example, the simplest minify -v
produces
/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
node_modules/minify/node_modules/util-io
everything looks normal. With what it can be connected? Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question