Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Heroku deploy fails #11

Open
danutDiac opened this issue Oct 7, 2019 · 0 comments
Open

Heroku deploy fails #11

danutDiac opened this issue Oct 7, 2019 · 0 comments

Comments

@danutDiac
Copy link

danutDiac commented Oct 7, 2019

I tried to deploy the application on Heroku and I get an error.

      Resolving node version 6.8.0...
       Downloading and installing node 6.8.0...
       Using default npm version: 3.10.8
       
-----> Installing dependencies
       Installing node modules (package.json)
       
       > [email protected] postinstall /tmp/build_67dad2ef0ad289323c47189c69cf4bff
       > if [ $BUILD_ON_INSTALL ]; then npm run build; fi
       
       
       > [email protected] build /tmp/build_67dad2ef0ad289323c47189c69cf4bff
       > ./node_modules/typescript/bin/tsc
       
       sh: 1: ./node_modules/typescript/bin/tsc: not found
       
       npm ERR! Linux 4.4.0-1048-aws
       npm ERR! argv "/tmp/build_67dad2ef0ad289323c47189c69cf4bff/.heroku/node/bin/node" "/tmp/build_67dad2ef0ad289323c47189c69cf4bff/.heroku/node/bin/npm" "run" "build"
       npm ERR! node v6.8.0
       npm ERR! npm  v3.10.8
       npm ERR! file sh
       npm ERR! code ELIFECYCLE
       npm ERR! errno ENOENT
       npm ERR! syscall spawn
       npm ERR! [email protected] build: `./node_modules/typescript/bin/tsc`
       npm ERR! spawn ENOENT
       npm ERR! 
       npm ERR! Failed at the [email protected] build script './node_modules/typescript/bin/tsc'.
       npm ERR! Make sure you have the latest version of node.js and npm installed.
       npm ERR! If you do, this is most likely a problem with the bot-kpis package,
       npm ERR! not with npm itself.
       npm ERR! Tell the author that this fails on your system:
       npm ERR!     ./node_modules/typescript/bin/tsc
       npm ERR! You can get information on how to open an issue for this project with:
       npm ERR!     npm bugs bot-kpis
       npm ERR! Or if that isn't available, you can get their info via:
       npm ERR!     npm owner ls bot-kpis
       npm ERR! There is likely additional logging output above.
       
       npm ERR! Please include the following file with any support request:
       npm ERR!     /tmp/build_67dad2ef0ad289323c47189c69cf4bff/npm-debug.log
       
       npm ERR! Linux 4.4.0-1048-aws
       npm ERR! argv "/tmp/build_67dad2ef0ad289323c47189c69cf4bff/.heroku/node/bin/node" "/tmp/build_67dad2ef0ad289323c47189c69cf4bff/.heroku/node/bin/npm" "install" "--production=true" "--unsafe-perm" "--userconfig" "/tmp/build_67dad2ef0ad289323c47189c69cf4bff/.npmrc"
       npm ERR! node v6.8.0
       npm ERR! npm  v3.10.8
       npm ERR! code ELIFECYCLE
       npm ERR! [email protected] postinstall: `if [ $BUILD_ON_INSTALL ]; then npm run build; fi`
       npm ERR! Exit status 1
       npm ERR! 
       npm ERR! Failed at the [email protected] postinstall script 'if [ $BUILD_ON_INSTALL ]; then npm run build; fi'.
       npm ERR! Make sure you have the latest version of node.js and npm installed.
       npm ERR! If you do, this is most likely a problem with the bot-kpis package,
       npm ERR! not with npm itself.
       npm ERR! Tell the author that this fails on your system:
       npm ERR!     if [ $BUILD_ON_INSTALL ]; then npm run build; fi
       npm ERR! You can get information on how to open an issue for this project with:
       npm ERR!     npm bugs bot-kpis
       npm ERR! Or if that isn't available, you can get their info via:
       npm ERR!     npm owner ls bot-kpis
       npm ERR! There is likely additional logging output above.
       
       npm ERR! Please include the following file with any support request:
       npm ERR!     /tmp/build_67dad2ef0ad289323c47189c69cf4bff/npm-debug.log
-----> Build failed

I have build script on install and install dev depedencies set to true.
image

On the first try I had install had dev dependencies set to false and I've got another error.

Does anyone have an idea that can unblock me?
Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant