AmpersandJS / amp

a collection of individual JS utility modules
http://amp.ampersandjs.com
MIT License
130 stars 12 forks source link

Cannot find module 'uglifyjs' #82

Closed TimothyRHuertas closed 9 years ago

TimothyRHuertas commented 9 years ago

I get "Error: Cannot find module 'uglifyjs'" when I run npm install. I am a new00be at npm, but it looks as if the module may be unpublished https://registry.npmjs.org/uglifyjs

Thoughts

fyockm commented 9 years ago

@TimothyRHuertas you can get up and running by just removing the uglifyjs line from amp/package.json and re-run npm install again.

From what I can see, uglifyjs is only used in the size calculation.

jrunning commented 9 years ago

@fyockm After removing uglifyjs from package.json, npm install still fails because js-size also depends on uglifyjs.

TimothyRHuertas commented 9 years ago

I am impressed with the build scheme ampersandjs uses. To better understand it I want to add a module. @fyockm event though npm install still fails (as @fyockm pointed out), your suggestion will unblock me for now.

fyockm commented 9 years ago

@jrunning sorry, I just tried and found the same. Working on a PR for js-size and amp to remove that dependency.