Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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! MyApp@0.0.0 postinstall: `./node_modules/brunch/bin/brunch build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the MyApp@0.0.0 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 npm@1.3.25
3 info using node@v0.11.11
4 warn package.json MyApp@0.0.0 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 MyApp@0.0.0
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 MyApp@0.0.0
24 verbose linkBins MyApp@0.0.0
25 verbose linkMans MyApp@0.0.0
26 verbose rebuildBundles MyApp@0.0.0
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 MyApp@0.0.0
29 verbose unsafe-perm in lifecycle true
30 info postinstall MyApp@0.0.0
31 verbose unsafe-perm in lifecycle true
32 info MyApp@0.0.0 Failed to exec postinstall script
33 error MyApp@0.0.0 postinstall: `./node_modules/brunch/bin/brunch build`
33 error Exit status 1
34 error Failed at the MyApp@0.0.0 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

This comment has been minimized.

Copy link

lapluviosilla commented Jul 27, 2014

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
You can’t perform that action at this time.