Frage

I'm trying to install uglifyjs on my computer from local folders.

I downloaded all dependencies of uglifyjs, including dependencies of dependencies, and they are all available in my folder C:\npm\node_modules

I'm working on Windows XP, and when I'm trying to install uglify-js from \node_modules\uglify-js using the command npm install -g node_modules\uglify-js (global because I'm on a Windows machine, to be able then to execute uglifyjs using the command: uglifyjs -o output.js input.js) it's trying to download dependencies from Internet (I can't because I'm under a security proxy, that's why I downloaded all dependencies manually)

enter image description here

I tried to install all dependencies manually, it seems to work fine though

npm list:

enter image description here

This is all folders on my node_modules folder

enter image description here

I installed uglify-js without global command -g, it worked fine

enter image description here

But when I execute the uglifyjs command node C:\npm\node_modules\.bin\uglifyjs output.js input.js, I have this error:

enter image description here

Do you have any suggestion?

Thanks.

War es hilfreich?

Lösung

If those are backticks wrapping your dirname, try changing them to single quotation marks:

basedir='dirname "$0"'

instead of

basdir=`dirname "$0"`
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top