Reputation: 83
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
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