Ying Zhao
Ying Zhao

Reputation: 83

Deploy a node.js application to Bluemix using cf command line interface failed

The error message I got

-----> Build failed Your build failed! Some possible problems: - node_modules checked into source control https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-> > folder-into-git- Staging failed: Buildpack compilation step failed FAILED BuildpackCompileFailed

How to fix this problem?

Upvotes: 0

Views: 72

Answers (1)

Ying Zhao
Ying Zhao

Reputation: 83

As a user, I would first check whether node_modules is placed in .cfignore file and .gitignore, if the project resides in a git repository, in the project. Similar to .gitignore, .cfignore file specifies files not required to build the application. Files in node_modules are not needed to be uploaded to Bluemix application instance, therefore, can be placed in file .cfignore and .gitignore.

Upvotes: 1

Related Questions