Push rejected, no Cedar-supported app detected in mean app - node.js

trying to deploy my mean app to Heroku
getting this error
Push rejected, no Cedar-supported app detected
remote: HINT: This occurs when Heroku cannot detect the buildpack
remote: to use for this application automatically.
remote: See https://devcenter.heroku.com/articles/buildpacks
remote:
remote: Verifying deploy....
remote:
remote: ! Push rejected to
The following is my package.json file. Please check it......
{
"name": "genealogy",
"version": "0.0.0",
"main": "server/app.js",
"dependencies": {
"express": "~4.9.0",
"morgan": "~1.5.3",
"body-parser": "~1.12.4",
"method-override": "~2.3.3",
"serve-favicon": "~2.2.1",
"cookie-parser": "~1.3.5",
"express-session": "~1.11.2",
"errorhandler": "~1.3.6",
"compression": "~1.4.4",
"lodash": "~3.9.3",
"ejs": "~2.3.1",
"mongoose": "~4.0.5",
"jsonwebtoken": "^5.0.1",
"express-jwt": "^3.0.1",
"passport": "~0.2.2",
"passport-local": "~1.0.0",
"passport-facebook": "latest",
"passport-twitter": "latest",
"passport-google-oauth": "latest",
"composable-middleware": "^0.3.0",
"connect-mongo": "^0.8.1",
"socket.io": "^1.3.5",
"socket.io-client": "^1.3.5",
"socketio-jwt": "^4.2.0"
},
"devDependencies": {
"grunt": "~0.4.4",
"grunt-autoprefixer": "~0.7.2",
"grunt-wiredep": "~1.8.0",
"grunt-concurrent": "~0.5.0",
"grunt-contrib-clean": "~0.5.0",
"grunt-contrib-concat": "~0.4.0",
"grunt-contrib-copy": "~0.5.0",
"grunt-contrib-cssmin": "~0.9.0",
"grunt-contrib-htmlmin": "~0.2.0",
"grunt-contrib-imagemin": "~0.7.1",
"grunt-contrib-jshint": "~0.10.0",
"grunt-contrib-uglify": "~0.4.0",
"grunt-contrib-watch": "~0.6.1",
"grunt-google-cdn": "~0.4.0",
"grunt-newer": "~0.7.0",
"grunt-ng-annotate": "^0.2.3",
"grunt-rev": "~0.1.0",
"grunt-svgmin": "~0.4.0",
"grunt-usemin": "~2.1.1",
"grunt-env": "~0.4.1",
"grunt-node-inspector": "~0.1.5",
"grunt-nodemon": "~0.2.0",
"grunt-angular-templates": "^0.5.4",
"grunt-dom-munger": "^3.4.0",
"grunt-protractor-runner": "^1.1.0",
"grunt-injector": "~0.5.4",
"grunt-karma": "~0.8.2",
"grunt-build-control": "DaftMonk/grunt-build-control",
"grunt-mocha-test": "~0.10.2",
"jit-grunt": "^0.5.0",
"time-grunt": "~0.3.1",
"grunt-express-server": "~0.4.17",
"grunt-open": "~0.2.3",
"open": "~0.0.4",
"jshint-stylish": "~0.1.5",
"connect-livereload": "~0.4.0",
"karma-ng-scenario": "~0.1.0",
"karma-firefox-launcher": "~0.1.3",
"karma-script-launcher": "~0.1.0",
"karma-html2js-preprocessor": "~0.1.0",
"karma-ng-jade2js-preprocessor": "^0.1.2",
"karma-jasmine": "~0.1.5",
"karma-chrome-launcher": "~0.1.3",
"requirejs": "~2.1.11",
"karma-requirejs": "~0.2.1",
"karma-coffee-preprocessor": "~0.2.1",
"karma-jade-preprocessor": "0.0.11",
"karma-phantomjs-launcher": "~0.1.4",
"karma": "~0.12.9",
"karma-ng-html2js-preprocessor": "~0.1.0",
"supertest": "~0.11.0",
"should": "~3.3.1"
},
"engines": {
"node": ">=0.10.0"
},
"scripts": {
"start": "node server/app.js",
"test": "grunt test",
"update-webdriver": "node node_modules/grunt-protractor-runner/node_modules/protractor/bin/webdriver-manager update"
},
"private": true
}

Related

To ignore npm install errors while building a mean stack application under docker image

I have a mean stack application which i am building under docker container. But it is throwing some error while performing npm install which is not critical. I want to ignore all thosse errors.
This is what i am trying:-
# Create image based on the official Node 6 image from dockerhub
FROM node:6
# Create a directory where our app will be placed
RUN mkdir -p ./build
# Copy dependency definitions
COPY package.json ./build
# Change directory so that our commands run inside this new directory(It will switch the directory as well)
WORKDIR ./build
# Install npm dependecies
RUN npm install || 1
# Get all the code needed to run the app
COPY . ./build
# Expose the port the app runs in
EXPOSE 8100
# Serve the app
CMD ["npm", "start"]
My package.json file is
{
"name": "mean1",
"version": "0.0.0",
"main": "server/app.js",
"dependencies": {
"adm-zip": "^0.4.7",
"async": "^2.1.4",
"aws-sdk": "^2.101.0",
"body-parser": "~1.5.0",
"composable-middleware": "^0.3.0",
"compression": "~1.0.1",
"connect-mongo": "^0.8.1",
"cookie-parser": "~1.0.1",
"cors": "^2.7.1",
"crypto": "0.0.3",
"debug": "^2.6.0",
"ejs": "~0.8.4",
"errorhandler": "~1.0.0",
"express": "~4.9.0",
"express-jwt": "^3.0.0",
"express-session": "~1.0.2",
"fs.extra": "^1.3.2",
"gm": "^1.21.1",
"handlebars": "^4.0.5",
"html-minifier": "^3.4.2",
"html-pdf": "^2.1.0",
"json2xls": "^0.1.2",
"jsonwebtoken": "^5.0.0",
"lodash": "~3.10.1",
"lwip": "0.0.9",
"method-override": "~1.0.0",
"moment": "^2.17.1",
"mongoose": "~4.10.0",
"morgan": "~1.0.0",
"multer": "^1.0.6",
"newrelic": "^2.2.0",
"nodemailer": "~1.8.0",
"passport": "~0.2.0",
"passport-facebook": "^2.1.0",
"passport-google-oauth": "latest",
"passport-linkedin": "^1.0.0",
"passport-local": "~0.1.6",
"passport-twitter": "^1.0.4",
"request": "~2.65.0",
"rimraf": "^2.6.1",
"s3": "^4.4.0",
"seq": "^0.3.5",
"serve-favicon": "~2.0.1",
"socketio-jwt": "^3.0.0",
"trim": "0.0.1",
"util": "^0.10.3",
"validator": "^6.2.0",
"xlsx": "^0.8.0",
"connect-multiparty": "^2.0.0"
},
"devDependencies": {
"grunt": "~0.4.4",
"grunt-autoprefixer": "~0.7.2",
"grunt-wiredep": "~1.8.0",
"grunt-concurrent": "~0.5.0",
"grunt-contrib-clean": "~0.5.0",
"grunt-contrib-concat": "~0.4.0",
"grunt-contrib-copy": "~0.5.0",
"grunt-contrib-cssmin": "~0.9.0",
"grunt-contrib-htmlmin": "~0.2.0",
"grunt-contrib-imagemin": "^1.0.0",
"grunt-contrib-jshint": "~0.10.0",
"grunt-contrib-uglify": "~0.4.0",
"grunt-contrib-watch": "~0.6.1",
"karma-babel-preprocessor": "^5.2.1",
"grunt-babel": "~5.0.0",
"grunt-google-cdn": "~0.4.0",
"grunt-newer": "~0.7.0",
"grunt-ng-annotate": "^0.2.3",
"grunt-rev": "~0.1.0",
"grunt-svgmin": "~0.4.0",
"grunt-usemin": "~2.1.1",
"grunt-env": "~0.4.1",
"grunt-node-inspector": "~0.1.5",
"grunt-nodemon": "~0.2.0",
"grunt-angular-templates": "^0.5.4",
"grunt-dom-munger": "^3.4.0",
"grunt-protractor-runner": "^1.1.0",
"grunt-injector": "~0.5.4",
"grunt-karma": "~0.8.2",
"grunt-build-control": "~0.4.0",
"grunt-mocha-test": "~0.10.2",
"grunt-contrib-sass": "^0.7.3",
"jit-grunt": "^0.5.0",
"time-grunt": "~0.3.1",
"grunt-express-server": "~0.4.17",
"grunt-open": "~0.2.3",
"open": "~0.0.4",
"jshint-stylish": "~0.1.5",
"connect-livereload": "~0.4.0",
"karma-ng-scenario": "~0.1.0",
"karma-firefox-launcher": "~0.1.3",
"karma-script-launcher": "~0.1.0",
"karma-html2js-preprocessor": "~0.1.0",
"karma-ng-jade2js-preprocessor": "^0.1.2",
"karma-jasmine": "~0.1.5",
"karma-chrome-launcher": "~0.1.3",
"requirejs": "~2.1.11",
"karma-requirejs": "~0.2.1",
"karma-coffee-preprocessor": "~0.2.1",
"karma-jade-preprocessor": "0.0.11",
"karma-phantomjs-launcher": "~0.1.4",
"karma": "~0.12.9",
"karma-ng-html2js-preprocessor": "~0.1.0",
"supertest": "~0.11.0",
"should": "~3.3.1"
},
"engines": {
"node": ">=0.10.0"
},
"scripts": {
"start": "node server/app.js",
"test": "grunt test",
"update-webdriver": "node node_modules/grunt-protractor-runner/node_modules/protractor/bin/webdriver-manager update"
},
"private": true
}
But my docker container is unable to start as it found an error code in npm install.
try
RUN npm install || true
This should ensure that the step should always succeed

"npm install" not doing anything despite there being a package.json

I'm not sure if it was because of upgrading npm or node, but "npm install" was working all along up till the upgrade, and after struggling with this issue, decided to reverted back to using NodeJs v4.2.6 and npm v2.14.18 - still though, this hasn't resolved the issue. When removing my node_modules folder and then running "npm install", it does nothing as can be seen below:
This is my package.json
{
"private": true,
"jspm": {
"dependencies": {
"angular": "github:angular/bower-angular#^1.4.7",
"angular-animate": "github:angular/bower-angular-animate#^1.4.8",
"angular-bootstrap-contextmenu": "npm:angular-bootstrap-contextmenu#^0.9.6",
"angular-loading-bar": "github:chieffancypants/angular-loading-bar#^0.8.0",
"angular-local-storage": "npm:angular-local-storage#^0.2.2",
"angular-messages": "github:angular/bower-angular-messages#^1.4.7",
"angular-mocks": "github:angular/bower-angular-mocks#^1.4.7",
"angular-ui-bootstrap": "npm:angular-ui-bootstrap#^0.14.0",
"angular-ui-grid": "github:angular-ui/bower-ui-grid#^3.0.7",
"angular-ui-router": "github:angular-ui/ui-router#^0.2.15",
"bootstrap": "github:twbs/bootstrap#^3.3.6",
"bootstrap-sass": "github:twbs/bootstrap-sass#^3.3.6",
"clean-css": "npm:clean-css#^3.4.9",
"font-awesome": "npm:font-awesome#^4.5.0",
"jquery": "github:components/jquery#2.1.3",
"json": "github:systemjs/plugin-json#^0.1.0",
"lodash": "npm:lodash#^3.10.1",
"moment": "github:moment/moment#^2.10.6",
"ngstorage": "npm:ngstorage#^0.3.9",
"restangular": "github:mgonto/restangular#^1.5.1",
"text": "github:systemjs/plugin-text#^0.0.2",
"toastr": "github:CodeSeven/toastr#^2.1.2"
},
"devDependencies": {
"babel": "npm:babel-core#^5.8.24",
"babel-runtime": "npm:babel-runtime#^5.8.24",
"core-js": "npm:core-js#^1.1.4"
}
},
"devDependencies": {
"babel": "^5.8.35",
"babel-core": "^5.8.35",
"babel-polyfill": "^6.3.14",
"babel-runtime": "^5.8.35",
"browser-sync": "^2.11.1",
"core-js": "^1.2.3",
"del": "^2.1.0",
"extend": "^3.0.0",
"gulp": "^3.9.0",
"gulp-autoprefixer": "^3.1.0",
"gulp-changed": "^1.3.0",
"gulp-clean": "^0.3.1",
"gulp-cli": "^0.3.0",
"gulp-concat": "^2.6.0",
"gulp-filter": "^3.0.1",
"gulp-htmlhint": "^0.3.0",
"gulp-if": "^2.0.0",
"gulp-jshint": "^1.11.2",
"gulp-karma": "0.0.5",
"gulp-livereload": "^3.8.1",
"gulp-minify-css": "^1.2.2",
"gulp-notify": "^2.2.0",
"gulp-plumber": "^1.0.1",
"gulp-preprocess": "^2.0.0",
"gulp-rename": "^1.2.2",
"gulp-replace": "^0.5.4",
"gulp-sass": "^2.0.4",
"gulp-slash": "^1.1.3",
"gulp-sourcemaps": "^1.6.0",
"gulp-util": "^3.0.7",
"isparta": "^3.1.0",
"jasmine-async-sugar": "^1.3.0",
"jasmine-core": "^2.3.4",
"jshint-stylish": "^2.0.1",
"jspm": "^0.16.24",
"karma": "^0.13.14",
"karma-babel-preprocessor": "^5.2.2",
"karma-chrome-launcher": "^0.2.1",
"karma-cli": "^0.1.1",
"karma-coverage": "^0.5.2",
"karma-coveralls": "^1.1.2",
"karma-firefox-launcher": "^0.1.6",
"karma-ie-launcher": "^0.2.0",
"karma-jasmine": "^0.3.6",
"karma-jspm": "^2.0.1",
"karma-junit-reporter": "^0.3.7",
"karma-phantomjs-launcher": "^0.2.1",
"karma-safari-launcher": "^0.1.1",
"karma-vs-reporter": "^0.8.0",
"karma-xml-reporter": "^0.1.4",
"phantomjs": "^1.9.18",
"phantomjs-polyfill": "0.0.1",
"require-dir": "^0.3.0",
"run-sequence": "^1.1.5",
"systemjs-builder": "^0.14.11",
"ui-grid": "0.0.0",
"yargs": "^3.29.0"
}
}
Any ideas would be greatly appreciated. I've cleared my npm cache, but that hasn't helped.

lodash is not in the npm registry - MEAN.io

I´m simply trying to configure MEAN.io (also tried MEAN.js), but npm always fails on update because of the module loadash. It says
Error 404 - Module lodash is not in the npm registry
How can I solve this dependency issue?
{
"name": "MyWebApp",
"description": "MEAN.io: A fullstack JavaScript framework powered by MongoDB, ExpressJS, AngularJS, NodeJS.",
"version": "0.4.3",
"private": false,
"author": "Linnovate <mean#linnovate.net>",
"contributors": "https://github.com/linnovate/mean/graphs/contributors",
"mean": "0.4.3",
"repository": {
"type": "git",
"url": "https://github.com/linnovate/mean.git"
},
"engines": {
"node": "0.10.x",
"npm": "1.3.x"
},
"scripts": {
"start": "node server",
"mocha": "node node_modules/.bin/mocha packages/**/server/tests/**/*.js -R spec -r tools/test/mocha-req.js",
"karma": "node node_modules/karma/bin/karma start",
"test": "npm run mocha && npm run karma",
"postinstall": "node node_modules/meanio/node_modules/mean-cli/bin/mean-postinstall"
},
"dependencies": {
"assetmanager": "1.1.2",
"async": "0.9.0",
"body-parser": "1.10.0",
"compression": "1.2.1",
"connect-flash": "0.1.1",
"consolidate": "0.10.0",
"cookie-parser": "1.3.3",
"errorhandler": "1.3.0",
"express": "4.11.1",
"forever": "0.11.1",
"gridfs-stream": "0.5.3",
"lodash": "3.3.0",
"meanio": "linnovate/meanio",
"mongoose": "3.8.21",
"morgan": "1.5.0",
"ms": "0.6.2",
"nodemailer": "1.2.2",
"passport-facebook": "1.0.3",
"passport-github": "0.1.5",
"passport-google-oauth": "0.1.5",
"passport-linkedin": "0.1.3",
"passport-local": "1.0.0",
"passport-twitter": "1.0.2",
"serve-favicon": "2.2.0",
"swig": "1.4.2",
"time-grunt": "^1.0.0",
"view-helpers": "0.1.5",
"grunt-cli": "^0.1.13",
"grunt-hook": "~0.3.0",
"grunt-concurrent": "^1.0.0",
"grunt-contrib-clean": "^0.6.0",
"grunt-contrib-csslint": "^0.3.1",
"grunt-contrib-cssmin": "^0.10.0",
"grunt-contrib-jshint": "^0.10.0",
"grunt-contrib-uglify": "^0.5.1",
"grunt-contrib-watch": "^0.6.1",
"grunt-env": "^0.4.1",
"grunt-nodemon": "^0.3.0",
"load-grunt-tasks": "^0.6.0"
},
"devDependencies": {
"expect.js": "0.3.1",
"grunt-karma": "^0.8.2",
"grunt-mocha-test": "^0.10.2",
"karma": "0.12.28",
"karma-chrome-launcher": "0.1.7",
"karma-coffee-preprocessor": "0.2.1",
"karma-coverage": "0.2.7",
"karma-firefox-launcher": "0.1.3",
"karma-html2js-preprocessor": "0.1.0",
"karma-jasmine": "0.2.3",
"karma-ng-html2js-preprocessor": "0.1.2",
"karma-ng-scenario": "0.1.0",
"karma-phantomjs-launcher": "0.1.4",
"karma-requirejs": "0.2.2",
"karma-script-launcher": "0.1.0",
"mocha": "2.1.0",
"requirejs": "2.1.15",
"supertest": "0.11.0",
"del": "^0.1.3",
"gulp": "^3.8.8",
"gulp-concat": "^2.4.1",
"gulp-csslint": "^0.1.5",
"gulp-cssmin": "^0.1.6",
"gulp-jshint": "^1.8.5",
"gulp-less": "^1.3.6",
"gulp-livereload": "^2.1.1",
"gulp-load-plugins": "^0.7.0",
"gulp-mocha": "^1.1.0",
"gulp-nodemon": "^1.0.4",
"gulp-rimraf": "^0.1.1",
"gulp-uglify": "^1.0.1",
"gulp-util": "^3.0.1",
"jshint-stylish": "^1.0.0",
"through": "^2.3.6"
}
}

node package.json WARN engine express#2.5.9

This is my package.json
{
"author": "***",
"name": "***",
"email": "***",
"url": "***",
"version": "***",
"homepage": "***",
"description": "***",
"bugs": "***",
"repository": {
"type": "git",
"url": "***"
},
"scripts": {
"start": "node server.js"
},
"license": "Apache License",
"dependencies": {
"bcrypt-nodejs": "0.0.3",
"body-parser": "^1.10.0",
"compression": "^1.2.2",
"connect-flash": "^0.1.1",
"connect-livereload": "^0.5.2",
"connect-mongo": "^0.4.2",
"consolidate": "^0.10.0",
"cookie-parser": "^1.3.3",
"ejs": "^1.0.0",
"errorhandler": "^1.3.2",
"express": "^4.10.6",
"express-jwt": "^1.0.0",
"express-logger": "0.0.3",
"express-session": "^1.9.3",
"express-validator": "^2.7.0",
"formidable": "^1.0.16",
"helmet": "^0.6.1",
"jsonwebtoken": "^3.2.2",
"lodash": "^2.4.1",
"method-override": "^2.3.0",
"mongoose": "^3.8.21",
"morgan": "^1.5.0",
"passport": "^0.2.1",
"passport-local": "^1.0.0",
"serve-favicon": "^2.2.0",
"socket.io": "^1.2.1",
"socketio-jwt": "^2.3.5"
},
"devDependencies": {
"del": "^0.1.3",
"expect.js": "^0.3.1",
"express": "^4.10.6",
"gulp": "^3.8.10",
"gulp-angular-templatecache": "^1.4.2",
"gulp-autoprefixer": "^1.0.1",
"gulp-concat": "^2.4.1",
"gulp-csso": "^0.2.9",
"gulp-express": "^0.1.2",
"gulp-if": "^1.2.5",
"gulp-jasmine": "^1.0.1",
"gulp-jshint": "^1.9.0",
"gulp-minify-html": "^0.1.6",
"gulp-mocha": "^2.0.0",
"gulp-ng-annotate": "^0.3.4",
"gulp-protractor": "0.0.11",
"gulp-rename": "^1.2.0",
"gulp-replace": "^0.5.0",
"gulp-ruby-sass": "^0.7.1",
"gulp-uglify": "^1.0.1",
"jasmine-core": "^2.1.2",
"jshint-stylish": "^1.0.0",
"karma": "^0.12.25",
"karma-chrome-launcher": "^0.1.5",
"karma-html-reporter": "^0.2.4",
"karma-jasmine": "^0.3.0",
"karma-phantomjs-launcher": "^0.1.4",
"karma-spec-reporter": "0.0.13",
"mocha": "^2.1.0",
"protractor": "^1.4.0",
"run-sequence": "^1.0.1",
"supertest": "^0.15.0",
"yargs": "^1.3.2"
},
"engines": {
"node": ">=0.10.x"
}
}
when I run
npm install
I've got :
npm WARN engine express#2.5.9: wanted: {"node":">= 0.4.1 < 0.7.0"} (current: {"node":"0.10.33","npm":"1.4.28"})
Does anyone know where the warning come from ?

FAIL: Deploy MEAN.js app to Elastic Beanstalk

I'm deploying my MEAN.js Node app to AWS. Steps 1-4 are the commands I run from my local machine:
1) grunt build (DONE)
2) git commit -m "production deployment" my newly concatenated production files. (DONE)
3) Set NODE_ENV=productionon AWS. (DONE)
3) Set the AWS "NodeCommand" to grunt. (DONE)
4) git aws.push (DONE)
At this point my deployment fails because the app is uploaded to my EC2 then grunt gets called but since grunt isn't install globally the app fails to start.
I've tried settings step 3 to node_modules/grunt-cli/bin/grunt
Here is my package.json (which should install bower dependencies when app starts.. I think).
},
{
"name": "blah",
"description": "blah",
"version": "0.0.1",
"author": "me",
"engines": {
"node": "0.10.x",
"npm": "1.4.x"
},
"scripts": { <--------------------------------------------------- These scripts run?
"start": "node_modules/grunt-cli/bin/grunt",
"test": "node_modules/grunt-cli/bin/grunt test",
"postinstall": "node_modules/bower/bin/bower install --config.interactive=false"
},
"dependencies": {
"express": "~4.9.5",
"express-session": "~1.8.2",
"body-parser": "~1.9.0",
"cookie-parser": "~1.3.2",
"compression": "~1.1.0",
"method-override": "~2.2.0",
"morgan": "~1.3.2",
"connect-mongo": "~0.4.1",
"connect-flash": "~0.1.1",
"helmet": "~0.4.0",
"consolidate": "~0.10.0",
"swig": "~1.4.1",
"mongoose": "~3.8.8",
"passport": "~0.2.0",
"passport-local": "~1.0.0",
"passport-facebook": "~1.0.2",
"passport-twitter": "~1.0.2",
"passport-linkedin": "~0.1.3",
"passport-google-oauth": "~0.1.5",
"passport-github": "~0.1.5",
"lodash": "~2.4.1",
"forever": "~0.11.0",
"bower": "~1.3.8",
"grunt-cli": "~0.1.13",
"glob": "~4.0.5",
"async": "~0.9.0",
"nodemailer": "~1.3.0",
"nodemailer-ses-transport": "~1.2.0",
"nodemailer-dkim": "~1.0.1"
},
"devDependencies": {
"supertest": "~0.14.0",
"should": "~4.0.4",
"grunt-env": "~0.4.1",
"grunt-node-inspector": "~0.1.3",
"grunt-contrib-watch": "~0.6.1",
"grunt-contrib-jshint": "~0.10.0",
"grunt-contrib-csslint": "^0.3.1",
"grunt-ng-annotate": "~0.4.0",
"grunt-contrib-uglify": "~0.6.0",
"grunt-contrib-cssmin": "~0.10.0",
"grunt-nodemon": "~0.3.0",
"grunt-concurrent": "~1.0.0",
"grunt-mocha-test": "~0.12.1",
"grunt-karma": "~0.9.0",
"load-grunt-tasks": "~0.6.0",
"karma": "~0.12.0",
"karma-jasmine": "~0.2.1",
"karma-coverage": "~0.2.0",
"karma-chrome-launcher": "~0.1.2",
"karma-firefox-launcher": "~0.1.3",
"karma-phantomjs-launcher": "~0.1.2"
}
}

Resources