javascript - gulp After installing the image compression plug-in, why does it report Cannot find module 'file-type' after executing the gulp command?
世界只因有你
世界只因有你 2017-06-22 11:54:19
0
1
1045

After installing this image compression, I could execute the gulp command to compress html and css. Now I can’t. The error is reported for the first image.
Also, please tell me why I cannot compress the js file (the gulp-uglify plug-in has been installed). It is said on the Internet that it is a syntax error, but I can run it in the browser. Why do I still get a syntax error?
Compressed js file reported this error

I am a newbie. I searched many solutions on the site and on the Internet but could not solve it, so I came to the community to ask a question. Hope to get some guidance from God.

世界只因有你
世界只因有你

reply all(1)
世界只因有你

It may be due to the component version. A certain version of the component needs to depend on file-type, but it is not added to the dependency library of the component. An error will be reported when the component is checked or run. You can manually npm install the library that reports the error.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!