npm install failing in the IBM Cloud Foundry App[Nodejs]
See original GitHub issuelocal window7 node 10 npm 6 is npm install no problem.
but in the IBM cloud , execute ibmcloud cf push
ibm_db@2.5.0 install /tmp/app/node_modules/ibm_db node installer/driverInstall.js
Rebuild Process: Found clidriver at -> /tmp/app/node_modules/ibm_db/installer/clidriver
Downloading of clidriver skipped - build is in progress...
make: Entering directory `/tmp/app/node_modules/ibm_db/build'
CXX(target) Release/obj.target/odbc_bindings/src/odbc.o
make: Leaving directory `/tmp/app/node_modules/ibm_db/build'
{ Error: Command failed: node-gyp configure build --IS_DOWNLOADED=true --IBM_DB_HOME="$IBM_DB_HOME"
In file included from ../src/odbc.h:27:0,
from ../src/odbc.cpp:28:
/tmp/app/node_modules/ibm_db/installer/clidriver/include/sqlcli1.h:41:21: fatal error: windows.h: No such file or directory
#include <windows.h>
^
compilation terminated.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Cloud Foundry application deployment fails due to ... - IBM
When you deploy a Cloud Foundry application, an error similar to the following ... Building dependencies Installing node modules (package.json) npm ERR!
Read more >How I can download/pull deployed apps and services from ...
The app (Node.js) is deployed on Cloud Foundry (IBM Cloud, US-South) by my previous ... bx cf curl - I got the following...
Read more >ibm_app | Resources | IBM-Cloud/ibm - Terraform Registry
Example usage. The following example creates the my-app Node.js Cloud Foundry app. data "ibm_space" ...
Read more >Node.js With Express Framework Basic App on IBM Bluemix
As my Last post gave You idea of IBM Bluemix,Just Create account in Bluemix and install Cloud Foundry Tool. - refer Here to...
Read more >Universal Monitoring Agent for Node.js Extension - TechDocs
The Node.js Probe Agent (ca-apm-probe) needs to be installed as part of ... metadata: labels: app: nodejs-store-employee spec: containers: ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@lx171717 It is similar to the issue reported by #462 . Please read this for solution. You need to delete your node_modules folder before pushing to cf as the local ibm_db/installer/clidriver is windows specific which will not work on cf which is Linux. Thanks.
@Naviar Please install make, gcc, g++(gcc-c++), python2.7.x on your system before installing ibm_db. Also, you are using older version of ibm_db@2.5.2. Please use ibm_db@2.6.1. Thanks.