koma75 / crowdutil

Atlassian Crowd utility cli tool
MIT License
1 stars 0 forks source link

Install does not seem to like the version of uglifyjs #29

Closed sprocket888 closed 9 years ago

sprocket888 commented 9 years ago

I am trying to get this crowdutil installed but I seem to be a node js noob.

I did a git clone into a directory on my Linux box and then from that directory I issued the "npm install" command. it seems to scroll through dependencies but uglifyjs seems to cause an issue, it seems the URL reports a 0.0.0 version:

 npm http GET https://registry.npmjs.org/atlassian-crowd
 npm http GET https://registry.npmjs.org/async
 npm http GET https://registry.npmjs.org/log4js
 npm http GET https://registry.npmjs.org/validator
 npm http GET https://registry.npmjs.org/operetta/0.0.5
 npm http GET https://registry.npmjs.org/jglr
 npm http GET https://registry.npmjs.org/grunt-cli
 npm http GET https://registry.npmjs.org/grunt
 npm http GET https://registry.npmjs.org/grunt-contrib-coffee
 npm http GET https://registry.npmjs.org/grunt-contrib-watch
 npm http GET https://registry.npmjs.org/grunt-coffeelint/0.0.8
 npm http GET https://registry.npmjs.org/grunt-contrib-uglify
 npm http GET https://registry.npmjs.org/coffee-script
 npm http GET https://registry.npmjs.org/uglifyjs
 npm http GET https://registry.npmjs.org/coffeelint
 npm http 304 https://registry.npmjs.org/log4js
 npm http 304 https://registry.npmjs.org/validator
 npm http 304 https://registry.npmjs.org/async
 npm http 304 https://registry.npmjs.org/operetta/0.0.5
 npm http 304 https://registry.npmjs.org/grunt-cli
 npm http 304 https://registry.npmjs.org/grunt
 npm http 304 https://registry.npmjs.org/atlassian-crowd
 npm http 304 https://registry.npmjs.org/grunt-contrib-watch
 npm http 304 https://registry.npmjs.org/grunt-contrib-coffee
 npm http 304 https://registry.npmjs.org/coffee-script
 npm http 304 https://registry.npmjs.org/uglifyjs
 npm ERR! Error: No compatible version found: uglifyjs@'>=2.3.6-0 <2.4.0-0'
 npm ERR! Valid install targets:
 npm ERR! ["0.0.0"]
 npm ERR!     at installTargetsError (/usr/lib/node_modules/npm/lib/cache.js:719:10)
 npm ERR!     at next (/usr/lib/node_modules/npm/lib/cache.js:698:17)
 npm ERR!     at /usr/lib/node_modules/npm/lib/cache.js:675:5
 npm ERR!     at saved (/usr/lib/node_modules/npm-registry-client/lib/get.js:142:7)
 npm ERR!     at /usr/lib/node_modules/graceful-fs/polyfills.js:133:7
 npm ERR!     at Object.oncomplete (fs.js:107:15)
 npm ERR! If you need help, you may report this log at:
 npm ERR!     <http://github.com/isaacs/npm/issues>
 npm ERR! or email it to:
 npm ERR!     <npm-@googlegroups.com>

 npm ERR! System Linux 3.18.7-100.fc20.x86_64
 npm ERR! command "node" "/usr/bin/npm" "install"
 npm ERR! cwd /mnt/data/t.drive/code/crowdutil
 npm ERR! node -v v0.10.33
 npm ERR! npm -v 1.3.6
 npm http 304 https://registry.npmjs.org/jglr
 npm http 304 https://registry.npmjs.org/coffeelint
 npm http 304 https://registry.npmjs.org/grunt-contrib-uglify
 npm http 304 https://registry.npmjs.org/grunt-coffeelint/0.0.8
 npm ERR! 
 npm ERR! Additional logging details can be found in:
 npm ERR!     /mnt/data/t.drive/code/crowdutil/npm-debug.log
 npm ERR! not ok code 0

Perhaps I am just using npm incorrectly?

koma75 commented 9 years ago

Sorry for the late reply. Seems like the one I am currently referencing is outdated? I confirmed same issue on a new git clone in my environment.

I will fix it this weekend.

koma75 commented 9 years ago

In the mean time, if you just want to use the crowdutil (not setup development environment for crowdutil), you can do

> npm install -g crowdutil

to pull from the npm repository instead of from the git.

-g flag will install it globally on your machine, so you can invoke crowdutil from anywhere in your machine.

koma75 commented 9 years ago

the issue with uglifyjs should be now fixed. but since uglifyjs is only a development dependency, it is not required for general use.

crowdutil is available through the npm repository so there is no need to clone the git repository to use the tool. npm install -g crowdutil should work just fine.

after that, you should run crowdutil create-config -v to generate the template config file in $HOME/.crowdutil/config.json and edit that file to point to your crowd instance. set up your crowd application and password and allow your client machine IP to access that application. then you should be all set to go.

if you have further questions, just post another message here.

p.s. and no, I didn't realize it was you at first Jeremy :P

sprocket888 commented 9 years ago

Yes I the uglify is fixed, THX!

I actually started with the npm install, but I was getting a message : No such file or directory after executing the binary, so I went to the git clone since I thought perhaps I was missing a dependency.

So, no I am back at my first problem and that is I have crowdutil installed, but when I issue the crowdutil create-config -v it returns the : No such file or directory

Actually I had previously manually created the config file (in ~/.crowdutil/config.json) since --help was returning the same message and I thought maybe it was the config file that was missing. But that did not help either.

So maybe there is some dependency I am missing? Sorry these seem like very basic things.

koma75 commented 9 years ago

are you getting env: node\r: No such file or directory ?

if so, I think I may have screwed up in the npm publish (I may have uploaded the files with DOS newline characters CRLF)

I've re-published the crowdutil to npm repository which should fix that problem. try doing npm update -g crowdutil

sprocket888 commented 9 years ago

I am in business now, all is working correctly......now to actually try some stuff ;-)

Thanks!

koma75 commented 9 years ago

Good to hear things are finally working :)

If you find any other issues, just drop me a line or post a new issue here at Github.