Uglify-js In Nodejs "cannot Find Module"
Here i am creating application to compress a javascript file Steps i made, Installed nodeJS in my local machine checked node and npm is working Installed 'uglify-js' by 'npm insta
Solution 1:
You installed uglify globally, it won't be "visible" to your package. You want to run npm install uglify-js
(without the -g
) inside the directory/package where your script is located.
If you're keeping track of dependencies in a package.json (you should be!), npm install --save uglify-js
will automatically add it there for you.
Post a Comment for "Uglify-js In Nodejs "cannot Find Module""