heroku-django-cookbook
heroku-django-cookbook copied to clipboard
Update nodejs version. Add bower installer
You should definitely merge this when you can. I was getting a dependency mismatch where less was failing to install on heroku. I was getting the following problem:
-----> Running install_lessc
npm http GET https://registry.npmjs.org/less
npm http 200 https://registry.npmjs.org/less
npm http GET https://registry.npmjs.org/less/-/less-2.1.0.tgz
npm http 200 https://registry.npmjs.org/less/-/less-2.1.0.tgz
npm WARN engine [email protected]: wanted: {"node":">=0.10.0"} (current: {"node":"v0.8.12","npm":"1.1.63"})
npm http GET https://registry.npmjs.org/graceful-fs
npm http GET https://registry.npmjs.org/mime
npm http GET https://registry.npmjs.org/request
npm http GET https://registry.npmjs.org/mkdirp
npm http GET https://registry.npmjs.org/source-map
npm http GET https://registry.npmjs.org/promise
npm http 200 https://registry.npmjs.org/mime
npm WARN optional dep failed, continuing mime@^1.2.11
npm http 200 https://registry.npmjs.org/graceful-fs
npm WARN optional dep failed, continuing graceful-fs@^3.0.4
npm http 200 https://registry.npmjs.org/source-map
npm WARN optional dep failed, continuing source-map@^0.1.x
npm http 200 https://registry.npmjs.org/promise
npm WARN optional dep failed, continuing promise@^6.0.1
npm http 200 https://registry.npmjs.org/request
npm WARN optional dep failed, continuing request@^2.48.0
npm http 200 https://registry.npmjs.org/mkdirp
npm WARN optional dep failed, continuing mkdirp@^0.5.0
/app/.heroku/python/bin/lessc -> /app/.heroku/python/lib/node_modules/less/bin/lessc
[email protected] /app/.heroku/python/lib/node_modules/less
-----> Running run_compilestatic
-----> Compiling static files
module.js:340
throw err;
^
Error: Cannot find module 'promise'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:362:17)
at require (module.js:378:17)
at Object.<anonymous> (/app/.heroku/python/lib/node_modules/less/lib/less-node/file-manager.js:3:59)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:362:17)
+1
Was getting same error and this fixed it.
+1