Coder Social home page Coder Social logo

atom-imagemin's Introduction

atom-imagemin's People

Contributors

1000ch avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

atom-imagemin's Issues

Uncaught TypeError: Cannot read property 'file' of undefined

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.19.5 x64
Electron: 1.6.9
OS: Ubuntu 17.04
Thrown From: imagemin package 1.5.1

Stack Trace

Uncaught TypeError: Cannot read property 'file' of undefined

At /home/fullmad/.atom/packages/imagemin/index.js:49

TypeError: Cannot read property 'file' of undefined
    at minify (/packages/imagemin/index.js:49:22)
    at /packages/imagemin/index.js:33:64)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/usr/share/atom/resources/app/src/command-registry.js:265:35)
    at CommandRegistry.handleCommandEvent (/usr/share/atom/resources/app/src/command-registry.js:3:65)
    at CommandRegistry.module.exports.CommandRegistry.dispatch (/usr/share/atom/resources/app/src/command-registry.js:166:25)
    at AtomEnvironment.module.exports.AtomEnvironment.dispatchApplicationMenuCommand (/usr/share/atom/resources/app/src/atom-environment.js:1338:34)
    at EventEmitter.outerCallback (/usr/share/atom/resources/app/src/application-delegate.js:334:31)
    at emitThree (events.js:116:13)
    at EventEmitter.emit (events.js:194:7)

Commands

     -1:29.2.0 toggle (details.welcome-card)
     -1:21.8.0 local-history:purge (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-atom-storm-ui)
     -0:59.6.0 toggle (details.welcome-card)
     -0:37.4.0 tabs:close-other-tabs (div.title)
     -0:09.3.0 imagemin:minify (atom-workspace.workspace.scrollbars-visible-always.theme-atom-light-syntax.theme-atom-storm-ui)

Non-Core Packages

atom-autocomplete-php 0.25.6 
atom-beautify 0.30.5 
atom-bootstrap3 1.2.12 
atom-css-clean 2.23.0 
atom-minify 0.8.0 
atom-storm-ui 2.0.1 
auto-close-html2 0.3.8 
auto-copyright 0.5.0 
autocomplete-html-entities 0.1.0 
autocomplete-javascript 0.0.2 
autocomplete-python 1.10.2 
busy-signal 1.4.3 
codeigniter 0.3.2 
color-picker 2.2.5 
css-snippets 1.1.0 
imagemin 1.5.1 
intentions 1.1.5 
jquery-snippets 11.0.0 
linter 2.2.0 
linter-php 1.4.0 
linter-twig 0.4.2 
linter-ui-default 1.6.8 
local-history 4.3.0 
minimap 4.29.6 
php-twig 4.0.0 

Installing “[email protected]” failed.

Installing “[email protected]” failed.Hide output…

[email protected] postinstall /tmp/apm-install-dir-118814-6163-1s2dzj2.yn19/node_modules/imagemin/node_modules/gifsicle
node lib/install.js

[email protected] postinstall /tmp/apm-install-dir-118814-6163-1s2dzj2.yn19/node_modules/imagemin/node_modules/jpegoptim-bin
node lib/install.js

[email protected] postinstall /tmp/apm-install-dir-118814-6163-1s2dzj2.yn19/node_modules/imagemin/node_modules/mozjpeg
node lib/install.js

[email protected] postinstall /tmp/apm-install-dir-118814-6163-1s2dzj2.yn19/node_modules/imagemin/node_modules/optipng-bin
node lib/install.js

[email protected] postinstall /tmp/apm-install-dir-118814-6163-1s2dzj2.yn19/node_modules/imagemin/node_modules/pngquant-bin
node lib/install.js

npm WARN deprecated [email protected]: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
✔ gifsicle pre-build test passed successfully
✔ jpegoptim pre-build test passed successfully
✔ mozjpeg pre-build test passed successfully
✔ optipng pre-build test passed successfully
⚠ The /tmp/apm-install-dir-118814-6163-1s2dzj2.yn19/node_modules/imagemin/node_modules/pngquant-bin/vendor/pngquant binary doesn't seem to work correctly
⚠ pngquant pre-build test failed
ℹ compiling from source
✔ pngquant pre-build test passed successfully
✖ Error: pngquant failed to build, make sure that libpng-dev is installed
at Promise.all.then.arr (/tmp/apm-install-dir-118814-6163-1s2dzj2.yn19/node_modules/imagemin/node_modules/pngquant-bin/node_modules/bin-build/node_modules/execa/index.js:231:11)
at
at process._tickCallback (internal/process/next_tick.js:188:7)
npm WARN enoent ENOENT: no such file or directory, open '/tmp/apm-install-dir-118814-6163-1s2dzj2.yn19/package.json'
npm WARN apm-install-dir-118814-6163-1s2dzj2.yn19 No description
npm WARN apm-install-dir-118814-6163-1s2dzj2.yn19 No repository field.
npm WARN apm-install-dir-118814-6163-1s2dzj2.yn19 No README data
npm WARN apm-install-dir-118814-6163-1s2dzj2.yn19 No license field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: node lib/install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/user/.atom/.apm/_logs/2018-09-14T20_22_24_774Z-debug.log

TypeError: _imagemin2.default is not a constructor

When right-clicking on images in the sidebar and choosing "Minify Image" on my Mac running El Capitan:
TypeError: _imagemin2.default is not a constructor
at minify (/Users/djbeeker/.atom/packages/imagemin/index.js:72:20)
at atom-workspace. (/Users/djbeeker/.atom/packages/imagemin/index.js:44:64)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:260:29)
at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61)
at CommandRegistry.module.exports.CommandRegistry.dispatch (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:160:19)
at AtomEnvironment.module.exports.AtomEnvironment.dispatchContextMenuCommand (/Applications/Atom.app/Contents/Resources/app.asar/src/atom-environment.js:1110:28)
at EventEmitter.outerCallback (/Applications/Atom.app/Contents/Resources/app.asar/src/application-delegate.js:342:25)
at emitThree (events.js:110:13)
at EventEmitter.emit (events.js:188:7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.