Skip to content

Instantly share code, notes, and snippets.

@kellyjandrews
Created February 7, 2014 04:13
Show Gist options
  • Save kellyjandrews/8857288 to your computer and use it in GitHub Desktop.
Save kellyjandrews/8857288 to your computer and use it in GitHub Desktop.
Heroku Errors
error: Compiling of 'vendor/node/lib/node_modules/npm/cli.js' failed. Line 1: Unexpected token ILLEGAL ; Compiling of 'vendor/node/lib/node_modules/npm/bin/npm-cli.js' failed. Line 1: Unexpected token ILLEGAL ; Compiling of 'vendor/node/lib/node_modules/npm/scripts/index-build.js' failed. Line 1: Unexpected token ILLEGAL
07 Feb 04:10:25 - error: Compiling of 'vendor/node/lib/node_modules/npm/cli.js' failed. Line 1: Unexpected token ILLEGAL ; Compiling of 'vendor/node/lib/node_modules/npm/bin/npm-cli.js' failed. Line 1: Unexpected token ILLEGAL ; Compiling of 'vendor/node/lib/node_modules/npm/scripts/index-build.js' failed. Line 1: Unexpected token ILLEGAL ; Compiling of 'vendor/node/lib/node_modules/npm/node_modules/child-process-close/index.js' failed. Line 9: Illegal return statement,Line 13: Illegal return statement ; Compiling of 'vendor/node/lib/node_modules/npm/node_modules/opener/opener.js' failed. Line 1: Unexpected token ILLEGAL ; Compiling of 'vendor/node/lib/node_modules/npm/node_modules/rimraf/bin.js' failed. Line 1: Unexpected token ILLEGAL ; Compiling of 'vendor/node/lib/node_modules/npm/node_modules/semver/foot.js' failed. Line 2: Unexpected token } ; Compiling of 'vendor/node/lib/node_modules/npm/node_modules/semver/head.js' failed. Line 3: Unexpected end of input
07 Feb 04:10:26 - error: Compiling of 'vendor/node/lib/node_modules/npm/cli.js' failed. Line 1: Unexpected token ILLEGAL ; Compiling of 'vendor/node/lib/node_modules/npm/bin/npm-cli.js' failed. Line 1: Unexpected token ILLEGAL ; Compiling of 'vendor/node/lib/node_modules/npm/scripts/index-build.js' failed. Line 1: Unexpected token ILLEGAL ; Compiling of 'vendor/node/lib/node_modules/npm/node_modules/child-process-close/index.js' failed. Line 9: Illegal return statement,Line 13: Illegal return statement ; Compiling of 'vendor/node/lib/node_modules/npm/node_modules/opener/opener.js' failed. Line 1: Unexpected token ILLEGAL ; Compiling of 'vendor/node/lib/node_modules/npm/node_modules/rimraf/bin.js' failed. Line 1: Unexpected token ILLEGAL ; Compiling of 'vendor/node/lib/node_modules/npm/node_modules/semver/foot.js' failed. Line 2: Unexpected token } ; Compiling of 'vendor/node/lib/node_modules/npm/node_modules/semver/head.js' failed. Line 3: Unexpected end of input ; Compiling of 'vendor/node/lib/node_modules/npm/node_modules/ansi/examples/cursorPosition.js' failed. Line 1: Unexpected token ILLEGAL ; Compiling of 'vendor/node/lib/node_modules/npm/node_modules/ansi/examples/starwars.js' failed. Line 1: Unexpected token ILLEGAL ; Compiling of 'vendor/node/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js' failed. Line 1: Unexpected token ILLEGAL ; Compiling of 'vendor/node/lib/node_modules/npm/node_modules/nopt/bin/nopt.js' failed. Line 1: Unexpected token ILLEGAL ; Compiling of 'vendor/node/lib/node_modules/npm/node_modules/nopt/examples/my-program.js' failed. Line 1: Unexpected token ILLEGAL ; Compiling of 'vendor/node/lib/node_modules/npm/node_modules/slide/lib/async-map-ordered.js' failed. Line 66: Unexpected end of input
07 Feb 04:10:26 - error: Compiling of 'vendor/node/lib/node_modules/npm/cli.js' failed. Line 1: Unexpected token ILLEGAL ; Compiling of 'vendor/node/lib/node_modules/npm/bin/npm-cli.js' failed. Line 1: Unexpected token ILLEGAL ; Compiling of 'vendor/node/lib/node_modules/npm/scripts/index-build.js' failed. Line 1: Unexpected token ILLEGAL ; Compiling of 'vendor/node/lib/node_modules/npm/node_modules/child-process-close/index.js' failed. Line 9: Illegal return statement,Line 13: Illegal return statement ; Compiling of 'vendor/node/lib/node_modules/npm/node_modules/opener/opener.js' failed. Line 1: Unexpected token ILLEGAL ; Compiling of 'vendor/node/lib/node_modules/npm/node_modules/rimraf/bin.js' failed. Line 1: Unexpected token ILLEGAL ; Compiling of 'vendor/node/lib/node_modules/npm/node_modules/semver/foot.js' failed. Line 2: Unexpected token } ; Compiling of 'vendor/node/lib/node_modules/npm/node_modules/semver/head.js' failed. Line 3: Unexpected end of input ; Compiling of 'vendor/node/lib/node_modules/npm/node_modules/ansi/examples/cursorPosition.js' failed. Line 1: Unexpected token ILLEGAL ; Compiling of 'vendor/node/lib/node_modules/npm/node_modules/ansi/examples/starwars.js' failed. Line 1: Unexpected token ILLEGAL ; Compiling of 'vendor/node/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js' failed. Line 1: Unexpected token ILLEGAL ; Compiling of 'vendor/node/lib/node_modules/npm/node_modules/nopt/bin/nopt.js' failed. Line 1: Unexpected token ILLEGAL ; Compiling of 'vendor/node/lib/node_modules/npm/node_modules/nopt/examples/my-program.js' failed. Line 1: Unexpected token ILLEGAL ; Compiling of 'vendor/node/lib/node_modules/npm/node_modules/slide/lib/async-map-ordered.js' failed. Line 66: Unexpected end of input ; Compiling of 'vendor/node/lib/node_modules/npm/node_modules/ansi/examples/beep/index.js' failed. Line 1: Unexpected token ILLEGAL ; Compiling of 'vendor/node/lib/node_modules/npm/node_modules/ansi/examples/clear/index.js' failed. Line 1: Unexpected token ILLEGAL ; Compiling of 'vendor/node/lib/node_modules/npm/node_modules/ansi/examples/progress/index.js' failed. Line 1: Unexpected token ILLEGAL
07 Feb 04:10:27 - error: Compiling of 'vendor/node/lib/node_modules/npm/cli.js' failed. Line 1: Unexpected token ILLEGAL ; Compiling of 'vendor/node/lib/node_modules/npm/bin/npm-cli.js' failed. Line 1: Unexpected token ILLEGAL ; Compiling of 'vendor/node/lib/node_modules/npm/scripts/index-build.js' failed. Line 1: Unexpected token ILLEGAL ; Compiling of 'vendor/node/lib/node_modules/npm/node_modules/child-process-close/index.js' failed. Line 9: Illegal return statement,Line 13: Illegal return statement ; Compiling of 'vendor/node/lib/node_modules/npm/node_modules/opener/opener.js' failed. Line 1: Unexpected token ILLEGAL ; Compiling of 'vendor/node/lib/node_modules/npm/node_modules/rimraf/bin.js' failed. Line 1: Unexpected token ILLEGAL ; Compiling of 'vendor/node/lib/node_modules/npm/node_modules/semver/foot.js' failed. Line 2: Unexpected token } ; Compiling of 'vendor/node/lib/node_modules/npm/node_modules/semver/head.js' failed. Line 3: Unexpected end of input ; Compiling of 'vendor/node/lib/node_modules/npm/node_modules/ansi/examples/cursorPosition.js' failed. Line 1: Unexpected token ILLEGAL ; Compiling of 'vendor/node/lib/node_modules/npm/node_modules/ansi/examples/starwars.js' failed. Line 1: Unexpected token ILLEGAL ; Compiling of 'vendor/node/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js' failed. Line 1: Unexpected token ILLEGAL ; Compiling of 'vendor/node/lib/node_modules/npm/node_modules/nopt/bin/nopt.js' failed. Line 1: Unexpected token ILLEGAL ; Compiling of 'vendor/node/lib/node_modules/npm/node_modules/nopt/examples/my-program.js' failed. Line 1: Unexpected token ILLEGAL ; Compiling of 'vendor/node/lib/node_modules/npm/node_modules/slide/lib/async-map-ordered.js' failed. Line 66: Unexpected end of input ; Compiling of 'vendor/node/lib/node_modules/npm/node_modules/ansi/examples/beep/index.js' failed. Line 1: Unexpected token ILLEGAL ; Compiling of 'vendor/node/lib/node_modules/npm/node_modules/ansi/examples/clear/index.js' failed. Line 1: Unexpected token ILLEGAL ; Compiling of 'vendor/node/lib/node_modules/npm/node_modules/ansi/examples/progress/index.js' failed. Line 1: Unexpected token ILLEGAL
07 Feb 04:10:28 - error: Compiling of 'vendor/node/lib/node_modules/npm/cli.js' failed. Line 1: Unexpected token ILLEGAL ; Compiling of 'vendor/node/lib/node_modules/npm/bin/npm-cli.js' failed. Line 1: Unexpected token ILLEGAL ; Compiling of 'vendor/node/lib/node_modules/npm/scripts/index-build.js' failed. Line 1: Unexpected token ILLEGAL ; Compiling of 'vendor/node/lib/node_modules/npm/node_modules/child-process-close/index.js' failed. Line 9: Illegal return statement,Line 13: Illegal return statement ; Compiling of 'vendor/node/lib/node_modules/npm/node_modules/opener/opener.js' failed. Line 1: Unexpected token ILLEGAL ; Compiling of 'vendor/node/lib/node_modules/npm/node_modules/rimraf/bin.js' failed. Line 1: Unexpected token ILLEGAL ; Compiling of 'vendor/node/lib/node_modules/npm/node_modules/semver/foot.js' failed. Line 2: Unexpected token } ; Compiling of 'vendor/node/lib/node_modules/npm/node_modules/semver/head.js' failed. Line 3: Unexpected end of input ; Compiling of 'vendor/node/lib/node_modules/npm/node_modules/ansi/examples/cursorPosition.js' failed. Line 1: Unexpected token ILLEGAL ; Compiling of 'vendor/node/lib/node_modules/npm/node_modules/ansi/examples/starwars.js' failed. Line 1: Unexpected token ILLEGAL ; Compiling of 'vendor/node/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js' failed. Line 1: Unexpected token ILLEGAL ; Compiling of 'vendor/node/lib/node_modules/npm/node_modules/nopt/bin/nopt.js' failed. Line 1: Unexpected token ILLEGAL ; Compiling of 'vendor/node/lib/node_modules/npm/node_modules/nopt/examples/my-program.js' failed. Line 1: Unexpected token ILLEGAL ; Compiling of 'vendor/node/lib/node_modules/npm/node_modules/slide/lib/async-map-ordered.js' failed. Line 66: Unexpected end of input ; Compiling of 'vendor/node/lib/node_modules/npm/node_modules/ansi/examples/beep/index.js' failed. Line 1: Unexpected token ILLEGAL ; Compiling of 'vendor/node/lib/node_modules/npm/node_modules/ansi/examples/clear/index.js' failed. Line 1: Unexpected token ILLEGAL ; Compiling of 'vendor/node/lib/node_modules/npm/node_modules/ansi/examples/progress/index.js' failed. Line 1: Unexpected token ILLEGAL
npm ERR! [email protected] postinstall: `./node_modules/brunch/bin/brunch build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is most likely a problem with the MyApp package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! ./node_modules/brunch/bin/brunch build
npm ERR! You can get their info via:
npm ERR! npm owner ls MyApp
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.8.11-ec2
npm ERR! command "/tmp/build_318962c2-0c13-4f30-955f-c423aecc5fa1/vendor/node/bin/node" "/tmp/build_318962c2-0c13-4f30-955f-c423aecc5fa1/vendor/node/bin/npm" "install" "--userconfig" "/tmp/build_318962c2-0c13-4f30-955f-c423aecc5fa1/.npmrc" "--production"
npm ERR! cwd /tmp/build_318962c2-0c13-4f30-955f-c423aecc5fa1
npm ERR! node -v v0.11.11
npm ERR! npm -v 1.3.25
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /tmp/build_318962c2-0c13-4f30-955f-c423aecc5fa1/npm-debug.log
npm ERR! not ok code 0
0 info it worked if it ends with ok
1 verbose cli [ '/tmp/build_318962c2-0c13-4f30-955f-c423aecc5fa1/vendor/node/bin/node',
1 verbose cli '/tmp/build_318962c2-0c13-4f30-955f-c423aecc5fa1/vendor/node/bin/npm',
1 verbose cli 'install',
1 verbose cli '--userconfig',
1 verbose cli '/tmp/build_318962c2-0c13-4f30-955f-c423aecc5fa1/.npmrc',
1 verbose cli '--production' ]
2 info using [email protected]
3 info using [email protected]
4 warn package.json [email protected] No README data
5 verbose readDependencies using package.json deps
6 verbose install where, deps [ '/tmp/build_318962c2-0c13-4f30-955f-c423aecc5fa1',
6 verbose install [ 'brunch',
6 verbose install 'javascript-brunch',
6 verbose install 'css-brunch',
6 verbose install 'uglify-js-brunch',
6 verbose install 'clean-css-brunch',
6 verbose install 'auto-reload-brunch',
6 verbose install 'express',
6 verbose install 'twilio',
6 verbose install 'request',
6 verbose install 'read-components',
6 verbose install 'bower' ] ]
7 info preinstall [email protected]
8 verbose readDependencies using package.json deps
9 verbose already installed skipping brunch@* /tmp/build_318962c2-0c13-4f30-955f-c423aecc5fa1
10 verbose already installed skipping javascript-brunch@* /tmp/build_318962c2-0c13-4f30-955f-c423aecc5fa1
11 verbose already installed skipping css-brunch@* /tmp/build_318962c2-0c13-4f30-955f-c423aecc5fa1
12 verbose already installed skipping uglify-js-brunch@* /tmp/build_318962c2-0c13-4f30-955f-c423aecc5fa1
13 verbose already installed skipping clean-css-brunch@* /tmp/build_318962c2-0c13-4f30-955f-c423aecc5fa1
14 verbose already installed skipping auto-reload-brunch@* /tmp/build_318962c2-0c13-4f30-955f-c423aecc5fa1
15 verbose already installed skipping express@* /tmp/build_318962c2-0c13-4f30-955f-c423aecc5fa1
16 verbose already installed skipping twilio@* /tmp/build_318962c2-0c13-4f30-955f-c423aecc5fa1
17 verbose already installed skipping request@* /tmp/build_318962c2-0c13-4f30-955f-c423aecc5fa1
18 verbose already installed skipping read-components@* /tmp/build_318962c2-0c13-4f30-955f-c423aecc5fa1
19 verbose already installed skipping bower@* /tmp/build_318962c2-0c13-4f30-955f-c423aecc5fa1
20 silly resolved []
21 info build /tmp/build_318962c2-0c13-4f30-955f-c423aecc5fa1
22 verbose linkStuff [ false, false, false, '/tmp' ]
23 info linkStuff [email protected]
24 verbose linkBins [email protected]
25 verbose linkMans [email protected]
26 verbose rebuildBundles [email protected]
27 verbose rebuildBundles [ '.bin',
27 verbose rebuildBundles 'auto-reload-brunch',
27 verbose rebuildBundles 'bower',
27 verbose rebuildBundles 'brunch',
27 verbose rebuildBundles 'clean-css-brunch',
27 verbose rebuildBundles 'css-brunch',
27 verbose rebuildBundles 'express',
27 verbose rebuildBundles 'javascript-brunch',
27 verbose rebuildBundles 'read-components',
27 verbose rebuildBundles 'request',
27 verbose rebuildBundles 'twilio',
27 verbose rebuildBundles 'uglify-js-brunch' ]
28 info install [email protected]
29 verbose unsafe-perm in lifecycle true
30 info postinstall [email protected]
31 verbose unsafe-perm in lifecycle true
32 info [email protected] Failed to exec postinstall script
33 error [email protected] postinstall: `./node_modules/brunch/bin/brunch build`
33 error Exit status 1
34 error Failed at the [email protected] postinstall script.
34 error This is most likely a problem with the MyApp package,
34 error not with npm itself.
34 error Tell the author that this fails on your system:
34 error ./node_modules/brunch/bin/brunch build
34 error You can get their info via:
34 error npm owner ls MyApp
34 error There is likely additional logging output above.
35 error System Linux 3.8.11-ec2
36 error command "/tmp/build_318962c2-0c13-4f30-955f-c423aecc5fa1/vendor/node/bin/node" "/tmp/build_318962c2-0c13-4f30-955f-c423aecc5fa1/vendor/node/bin/npm" "install" "--userconfig" "/tmp/build_318962c2-0c13-4f30-955f-c423aecc5fa1/.npmrc" "--production"
37 error cwd /tmp/build_318962c2-0c13-4f30-955f-c423aecc5fa1
38 error node -v v0.11.11
39 error npm -v 1.3.25
40 error code ELIFECYCLE
41 verbose exit [ 1, true ]
! Push rejected, failed to compile Node.js app
@lapluviosilla
Copy link

Did you ever figure out what the issue was with this? I'm getting the exact same error when trying to deploy a brunch/bower app. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment