Skip to content

minify error with uglifyjs #218

@gmoulin

Description

@gmoulin

Hello, I get this error while trying to compile a csp minified build.

Lodash version 1.1.0

I use :

sudo lodash csp -m

Compressing lodash.custom.min using UglifyJS...
Error: Cannot find module '/usr/lib/node_modules/lodash/vendor/uglifyjs/tools/node.js'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Minify.uglify (/usr/lib/node_modules/lodash/build/minify.js:448:22)
at Minify.onClosureAdvancedGzip (/usr/lib/node_modules/lodash/build/minify.js:573:14)
at Gzip.onEnd (zlib.js:166:5)
at Gzip.EventEmitter.emit (events.js:117:20)
at _stream_readable.js:872:14
at process._tickCallback (node.js:415:13)

In /usr/lib/node_modules/lodash/vendor/uglifyjs/ I only have an empty lib folder and a LICENSE file.
I tried to delete the uglifyjs folder, same result.
I reinstalled lodash, same result.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions