title: Something wrong on deploy chaincode for hyperledger v1.0
body: <p>I have tried to use docker toolbox to setup Hyperledger V1.0 in my local machines.
  I according to this document： 
  <a href="http://hyperledger-fabric.readthedocs.io/en/latest/asset_setup.html" rel="nofollow noreferrer">http://hyperledger-fabric.readthedocs.io/en/latest/asset_setup.html</a></p>
  
  <p>But when I tried to deploy chaincode.</p>
  
  <pre><code>$node deploy.js
  </code></pre>
  
  <p>I got an error message： </p>
  
  <pre><code>info: Returning a new winston logger with default configurations
  info: [Chain.js]: Constructed Chain instance: name - fabric-client1, securityEnabled: true, TCert download batch size: 10, network mode: true
  info: [Peer.js]: Peer.const - url: grpc://localhost:8051 options  grpc.ssl_target_name_override=tlsca, grpc.default_authority=tlsca
  info: [Peer.js]: Peer.const - url: grpc://localhost:8055 options  grpc.ssl_target_name_override=tlsca, grpc.default_authority=tlsca
  info: [Peer.js]: Peer.const - url: grpc://localhost:8056 options  grpc.ssl_target_name_override=tlsca, grpc.default_authority=tlsca
  info: [Client.js]: Failed to load user "admin" from local key value store
  info: [FabricCAClientImpl.js]: Successfully constructed Fabric COP service client: endpoint - {"protocol":"http","hostname":"localhost","port":8054}
  info: [crypto_ecdsa_aes]: This class requires a KeyValueStore to save keys, no store was passed in, using the default store C:\Users\daniel\.hfc-key-store
  [2017-04-15 22:14:29.268] [ERROR] Helper - Error: Calling enrollment endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:8054]
      at ClientRequest.&lt;anonymous&gt; (C:\Users\daniel\node_modules\fabric-ca-client\lib\FabricCAClientImpl.js:304:12)
      at emitOne (events.js:96:13)
      at ClientRequest.emit (events.js:188:7)
      at Socket.socketErrorListener (_http_client.js:310:9)
      at emitOne (events.js:96:13)
      at Socket.emit (events.js:188:7)
      at emitErrorNT (net.js:1278:8)
      at _combinedTickCallback (internal/process/next_tick.js:74:11)
      at process._tickCallback (internal/process/next_tick.js:98:9)
  [2017-04-15 22:14:29.273] [ERROR] DEPLOY - Error: Failed to obtain an enrolled user
      at ca_client.enroll.then.then.then.catch (C:\Users\daniel\helper.js:59:12)
      at process._tickCallback (internal/process/next_tick.js:103:7)
  events.js:160
        throw er; // Unhandled 'error' event
        ^
  
  Error: Connect Failed
      at ClientDuplexStream._emitStatusIfDone (C:\Users\daniel\node_modules\grpc\src\node\src\client.js:201:19)
      at ClientDuplexStream._readsDone (C:\Users\daniel\node_modules\grpc\src\node\src\client.js:169:8)
      at readCallback (C:\Users\daniel\node_modules\grpc\src\node\src\client.js:229:12)
  </code></pre>
  
  <p>Is this an question about unable to connect to ca? Or other causes?</p>
  
  <p>Edit:</p>
  
  <p>Environment:</p>
  
  <pre><code>OS: Windows 10 Professional Edition
  Docker Toolbox: 17.04.0-ce
  Go: 1.7.5
  Node.js: 6.10.0
  </code></pre>
  
  <p>My steps: </p>
  
  <p><strong>1.Open Docker Quickstart Terminal and key commands.</strong> </p>
  
  <pre><code>$curl -L https://raw.githubusercontent.com/hyperledger/fabric/master/examples/sfhackfest/sfhackfest.tar.gz -o sfhackfest.tar.gz 2&gt; /dev/null;  tar -xvf sfhackfest.tar.gz
  
  $docker-compose -f docker-compose-gettingstarted.yml build
  
  $docker-compose -f docker-compose-gettingstarted.yml up -d
  
  $docker ps
  </code></pre>
  
  <p>It has been confirmed that six containers have been activated</p>
  
  <p><strong>2.Download examples and install modules.</strong></p>
  
  <pre><code>$curl -OOOOOO https://raw.githubusercontent.com/hyperledger/fabric-sdk-node/v1.0-alpha/examples/balance-transfer/{config.json,deploy.js,helper.js,invoke.js,query.js,package.json}
  //This link didn't work, so I downloaded the required files from GitHub of fabric-sdk-node
  
  $npm install --global windows-build-tools
  
  $npm install
  </code></pre>
  
  <p><strong>3.Try to deploy chaincode.</strong></p>
  
  <pre><code>$node deploy.js
  </code></pre>