Coder Social home page Coder Social logo

ibmjstart / bluemix-sample-tia-node Goto Github PK

View Code? Open in Web Editor NEW
17.0 17.0 31.0 1.13 MB

A sample application for BlueMix using node.

License: Apache License 2.0

JavaScript 78.20% Shell 0.62% CoffeeScript 6.87% CSS 0.57% HTML 13.68% Batchfile 0.06%

bluemix-sample-tia-node's People

Contributors

aeweidne avatar egroves01 avatar gokulk04 avatar jeden25 avatar joshisa avatar karasaj avatar lmsurpre avatar pmuellr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bluemix-sample-tia-node's Issues

License?

Under what license is the code available?

./build.coffee didn't work for me

I cloned from github and tried following the install directions on my Mac and hit the following error:

$ cd bluemix-sample-tia-node
$ ./build.coffee vendor
env: node_modules/.bin/coffee\r: No such file or directory

After messing with it a bit, the following seemed to work:

bluemix-sample-tia-node$ node_modules/.bin/coffee build.coffee vendor

Does the documentation need to be updated or was I just doing something dumb?

Failed to start TIA application.

Hello,

It was failed to start TIA Node.js application, although it had been success until last November.
It can be guessed that the version mismatch happens and package.json should be revised.
Which part should be updated?

package.json

{
"name": "bluemix-sample-tia-node",
"version": "0.1.0",
"engines": {
"node": "0.8.x"
},
"scripts": {
"start": "node lib/cli.js"
},
"dependencies": {
"async": "0.2.x",
"express": "3.3.x",
"nano": "~5.10.0"
},
"devDependencies": {
"coffee-script": "1.6.x",
"shelljs": "0.1.x",
"supervisor": "0.5.x"
}
}

Error message

Preparing to start hci-ntia... OK
-----> Downloaded app package (508K)
-----> Node.js Buildpack Version: v1.12-20150130-1059
-----> Resolving node version by IBM
-----> Requested node range: 0.8.x
-----> Resolved node version: 0.8.28
-----> Downloading and installing node
-----> Checking and configuring service extensions
-----> Installing dependencies
npm WARN package.json [email protected] No repository field.
......
npm WARN package.json [email protected] No repository field.
......
npm WARN package.json [email protected] No readme data.
......
npm WARN package.json [email protected] No repository field.
......
npm ERR! Error: No compatible version found: request@'^2.44.0'
npm ERR! Valid install targets:
npm ERR! ["0.10.0","0.8.3","0.9.0","0.9.1","0.9.5","1.0.0","1.1.0","1.1.1","1.2.0","1.9.0","1.9.1","1.9.2","1.9.3","1.9.5","1.9.7","1.9.8","1.9.9","2.0.0","2.0.1","2.0.2","2.0.3","2.0.4","2.0.5","2.1.0","2.1.1","2.2.0","2.2.5","2.2.6","2.2.9","2.9.0","2.9.1","2.9.2","2.9.3","2.9.100","2.9.150","2.9.151","2.9.152","2.9.153","2.9.200","2.9.201","2.9.202","2.9.203","2.10.0","2.11.0","2.11.1","2.11.2","2.11.3","2.11.4","2.12.0","2.14.0","2.16.0","2.16.2","2.16.4","2.16.6","2.18.0","2.19.0","2.20.0","2.21.0","2.22.0","2.23.0","2.24.0","2.25.0","2.26.0","2.27.0","2.28.0","2.29.0","2.30.0","2.31.0","2.32.0","2.33.0","2.34.0","2.35.0","2.36.0","2.37.0","2.38.0","2.39.0","2.40.0","2.41.0","2.42.0","2.43.0","2.44.0","2.45.0","2.46.0","2.47.0","2.48.0","2.49.0","2.50.0","2.51.0","2.52.0","2.53.0"]
npm ERR! at installTargetsError (/tmp/staged/app/vendor/node/lib/node_modules/npm/lib/cache.js:719:10)
npm ERR! at /tmp/staged/app/vendor/node/lib/node_modules/npm/lib/cache.js:641:10
npm ERR! at RegClient.get_ (/tmp/staged/app/vendor/node/lib/node_modules/npm/node_modules/npm-registry-client/lib/get.js:101:14)
npm ERR! at RegClient. (/tmp/staged/app/vendor/node/lib/node_modules/npm/node_modules/npm-registry-client/lib/get.js:37:12)
npm ERR! at fs.readFile (fs.js:181:14)
npm ERR! at Object.oncomplete (fs.js:302: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! [email protected]

   npm ERR! System Linux 3.13.0-39-generic
   npm ERR! command "/tmp/staged/app/vendor/node/bin/node" "/tmp/staged/app/vendor/node/bin/npm" "install" "--userconfig" "/tmp/staged/app/.npmrc" "--production"
   npm ERR! cwd /tmp/staged/app
   npm ERR! node -v v0.8.28
   npm ERR! npm -v 1.2.30

unable to read config.json file: SyntaxError: /home/vcap/app/config.json: Unexpected token #

Once you see the error message this one is pretty obvious, but it could easily trip someone up in the upcoming bluemix hackathon.

Can we remove the following line from the sample config.json.txt?

# sample config.json file, note comments not allowed in actual file

On the other hand, it could be handy for teaching them to debug the environment when something goes wrong :-)

App staging failed in the buildpack compile phase

I follow the tutorial to deploy this app to IBM BlueMix as the README.md.
After I execute cf start tnodex I got this error:

-----> Downloaded app package (508K)
-----> Node.js Buildpack Version: v1.10-20141217-1947
-----> Requested node range:  0.8.x
-----> Installing dependencies
       npm WARN package.json [email protected] No repository field.
       npm http GET https://registry.npmjs.org/async
       npm http GET https://registry.npmjs.org/express
       npm http GET https://registry.npmjs.org/nano
       npm http GET https://registry.npmjs.org/async/-/async-0.2.10.tgz
       npm http 200 https://registry.npmjs.org/express
       npm http GET https://registry.npmjs.org/express/-/express-3.3.8.tgz
       npm http GET https://registry.npmjs.org/nano/-/nano-5.10.0.tgz
       npm http 200 https://registry.npmjs.org/nano/-/nano-5.10.0.tgz
       npm http GET https://registry.npmjs.org/connect/2.8.8
       npm http GET https://registry.npmjs.org/commander/1.2.0
       npm http GET https://registry.npmjs.org/debug
       npm http 200 https://registry.npmjs.org/mkdirp/0.3.5
       npm http GET https://registry.npmjs.org/connect/-/connect-2.8.8.tgz
       npm http GET https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.1.tgz
       npm http 200 https://registry.npmjs.org/connect/-/connect-2.8.8.tgz
       npm http 200 https://registry.npmjs.org/send/0.1.4
       npm http GET https://registry.npmjs.org/send/-/send-0.1.4.tgz
       npm http 200 https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.1.tgz
       npm http GET https://registry.npmjs.org/fresh/-/fresh-0.2.0.tgz
       npm http GET https://registry.npmjs.org/debug/-/debug-2.1.0.tgz
       npm http GET https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.1.tgz
       npm http 200 https://registry.npmjs.org/fresh/-/fresh-0.2.0.tgz
       npm http 200 https://registry.npmjs.org/debug/-/debug-2.1.0.tgz
       npm http 200 https://registry.npmjs.org/errs
       npm http GET https://registry.npmjs.org/underscore/-/underscore-1.5.2.tgz
       npm http 200 https://registry.npmjs.org/request
       npm http 200 https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.1.tgz
       npm http GET https://registry.npmjs.org/follow/-/follow-0.11.4.tgz
       npm http GET https://registry.npmjs.org/request/-/request-2.33.0.tgz
       npm WARN package.json [email protected] No repository field.
       npm WARN package.json [email protected] No repository field.
       npm http 200 https://registry.npmjs.org/request/-/request-2.33.0.tgz
       npm http 200 https://registry.npmjs.org/errs/-/errs-0.2.4.tgz
       npm http GET https://registry.npmjs.org/http-signature
       npm http GET https://registry.npmjs.org/oauth-sign
       npm http GET https://registry.npmjs.org/hawk
       npm http 200 https://registry.npmjs.org/json-stringify-safe
       npm http GET https://registry.npmjs.org/mime/-/mime-1.2.11.tgz
       npm http 200 https://registry.npmjs.org/tunnel-agent
       npm http GET https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.3.0.tgz
       npm http GET https://registry.npmjs.org/tough-cookie/-/tough-cookie-0.12.1.tgz
       npm http GET https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.5.0.tgz
       npm http GET https://registry.npmjs.org/forever-agent/-/forever-agent-0.5.2.tgz
       npm http 200 https://registry.npmjs.org/form-data/-/form-data-0.1.4.tgz
       npm http 200 https://registry.npmjs.org/tough-cookie/-/tough-cookie-0.12.1.tgz
       npm http 200 https://registry.npmjs.org/qs
       npm http GET https://registry.npmjs.org/browser-request
       npm http GET https://registry.npmjs.org/debug/-/debug-0.7.4.tgz
       npm http GET https://registry.npmjs.org/node-uuid/-/node-uuid-1.4.2.tgz
       npm http GET https://registry.npmjs.org/keypress
       npm ERR! or email it to:
       npm ERR! System Linux 3.0.0-32-virtual
       npm ERR! cwd /tmp/staged/app
       npm http 200 https://registry.npmjs.org/browser-request
       npm http GET https://registry.npmjs.org/browser-request/-/browser-request-0.3.3.tgz
       npm http GET https://registry.npmjs.org/ms/-/ms-0.6.2.tgz
       npm http GET https://registry.npmjs.org/qs/0.6.5
       npm http GET https://registry.npmjs.org/pause/0.0.1
       npm http GET https://registry.npmjs.org/uid2/0.0.2
       npm http 200 https://registry.npmjs.org/bytes/0.2.0
       npm http 200 https://registry.npmjs.org/qs/0.6.5
       npm http GET https://registry.npmjs.org/formidable/-/formidable-1.0.14.tgz
       npm http GET https://registry.npmjs.org/async/-/async-0.9.0.tgz
       npm http GET https://registry.npmjs.org/assert-plus/0.1.2
       npm http 200 https://registry.npmjs.org/formidable/-/formidable-1.0.14.tgz
       npm http GET https://registry.npmjs.org/hoek
       npm http GET https://registry.npmjs.org/boom
       npm http 200 https://registry.npmjs.org/combined-stream
       npm http GET https://registry.npmjs.org/combined-stream/-/combined-stream-0.0.7.tgz
       npm http GET https://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz
       npm http 200 https://registry.npmjs.org/combined-stream/-/combined-stream-0.0.7.tgz
       npm http GET https://registry.npmjs.org/hoek/-/hoek-0.9.1.tgz
       npm WARN package.json [email protected] No repository field.

Faild
Server error, status code: 400, Error code: 170004 Message: App staging failed in the buildpack compile phase

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.