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)
> bot-kpis@1.0.6 postinstall /tmp/build_67dad2ef0ad289323c47189c69cf4bff
> if [ $BUILD_ON_INSTALL ]; then npm run build; fi
> bot-kpis@1.0.6 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! bot-kpis@1.0.6 build: `./node_modules/typescript/bin/tsc`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the bot-kpis@1.0.6 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! bot-kpis@1.0.6 postinstall: `if [ $BUILD_ON_INSTALL ]; then npm run build; fi`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bot-kpis@1.0.6 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.
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!
I tried to deploy the application on Heroku and I get an error.
I have build script on install and install dev depedencies set to true.![image](https://user-images.githubusercontent.com/16261042/66288927-cca38700-e8e3-11e9-8140-0c8845a2c55d.png)
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!