askmike / gekko

A bitcoin trading bot written in node - https://gekko.wizb.it/
MIT License
10.05k stars 3.95k forks source link

Having trouble install new gekko #213

Closed bigboi212 closed 10 years ago

bigboi212 commented 10 years ago

the old gekko worked for me but when i try instal the new one i get this:

Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.

C:\WINDOWS\system32>cd \users\patty\desktop\gekko-master

C:\Users\Patty\Desktop\gekko-master>npm install
npm http GET https://registry.npmjs.org/cexio
npm http GET https://registry.npmjs.org/lodash
npm http GET https://registry.npmjs.org/nedb/0.9.4
npm http GET https://registry.npmjs.org/line-reader
npm http GET https://registry.npmjs.org/btc-e
npm http GET https://registry.npmjs.org/bitstamp
npm http GET https://registry.npmjs.org/moment
npm http GET https://registry.npmjs.org/kraken-api
npm http GET https://registry.npmjs.org/mtgox-apiv2
npm http GET https://registry.npmjs.org/semver/2.2.1
npm http GET https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/nodeunit/0.8.2
npm http 304 https://registry.npmjs.org/lodash
npm http 304 https://registry.npmjs.org/line-reader
npm http 304 https://registry.npmjs.org/btc-e
npm http 304 https://registry.npmjs.org/nedb/0.9.4
npm http 304 https://registry.npmjs.org/cexio
npm http 304 https://registry.npmjs.org/moment
npm http 304 https://registry.npmjs.org/kraken-api
npm http 304 https://registry.npmjs.org/bitstamp
npm http 304 https://registry.npmjs.org/semver/2.2.1
npm http 304 https://registry.npmjs.org/mtgox-apiv2
npm http 304 https://registry.npmjs.org/async
npm http 304 https://registry.npmjs.org/nodeunit/0.8.2
npm http GET https://registry.npmjs.org/nodeunit/-/nodeunit-0.8.2.tgz
npm http 200 https://registry.npmjs.org/nodeunit/-/nodeunit-0.8.2.tgz
npm ERR! Error: EPERM, open 'C:\Users\Patty\AppData\Local\Temp\npm-7204-h3gykkr2
\1393087676600-0.5238795995246619\package\deps\console.log.js'
npm ERR!  { [Error: EPERM, open 'C:\Users\Patty\AppData\Local\Temp\npm-7204-h3gy
kkr2\1393087676600-0.5238795995246619\package\deps\console.log.js']
npm ERR!   errno: 50,
npm ERR!   code: 'EPERM',
npm ERR!   path: 'C:\\Users\\Patty\\AppData\\Local\\Temp\\npm-7204-h3gykkr2\\139
3087676600-0.5238795995246619\\package\\deps\\console.log.js' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! System Windows_NT 6.2.9200
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nod
ejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! cwd C:\Users\Patty\Desktop\gekko-master
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! path C:\Users\Patty\AppData\Local\Temp\npm-7204-h3gykkr2\1393087676600-
0.5238795995246619\package\deps\console.log.js
npm ERR! code EPERM
npm ERR! errno 50
npm ERR! stack Error: EPERM, open 'C:\Users\Patty\AppData\Local\Temp\npm-7204-h3
gykkr2\1393087676600-0.5238795995246619\package\deps\console.log.js'
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     C:\Users\Patty\Desktop\gekko-master\npm-debug.log
npm ERR! not ok code 0

I am in an admin CMD prompt.

memeyou commented 10 years ago

Hi!

Seems like a problem with NPM (https://github.com/npm/npm/issues), not Gekko. Be sure to update these first. Include the mentioned log there when you report to them.

You should NOT need to escalate cmd to Administrator mode to install/use* nodejs.

askmike commented 10 years ago

@memeyou is right, it seems like this is an issue with NPM itself. If you can't get it working could you let us know the following:

memeyou commented 10 years ago

Those are all in the output

npm ERR! System *Windows_NT 6.2.9200* npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nod ejs\\node_modules\\npm\\bin\\npm-cli.js" "install" npm ERR! cwd C:\Users\Patty\Desktop\gekko-master npm ERR! *node -v v0.10.26* npm ERR! *npm -v 1.4.3*

(that's windows 8.1 updated from 8, or server 2012 R2 )

bigboi212 commented 10 years ago

I had to use the git clone method. It seems to works now, but it still installed with errors.

bigboi212 commented 10 years ago

It says it will start giving advice in 2 days. So I guess that when it will start doing trades.

memeyou commented 10 years ago

It's based on your configuration. Candle Size * History Size.

bigboi212 commented 10 years ago

60 and 50

memeyou commented 10 years ago

So 1 hour * 50 = 2 days + 2 hours.

bigboi212 commented 10 years ago

yes

askmike commented 10 years ago

Awesome you got it working now.