question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

npm install failing in the IBM Cloud Foundry App[Nodejs]

See original GitHub issue

local 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:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
bimalkjhacommented, Apr 16, 2019

@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.

0reactions
bimalkjhacommented, Oct 29, 2019

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found