I created a node.js application with runtime dependencies of scoped packages in my package.json
:
"dependencies": {
"@shawnzhu/mybot" : "latest",
...
},
"engines": {
"npm": ">2.0.0",
"node": "0.10.38"
},
I also have a custom .npmrc
that points scope @shawnzhu
to my private npm registry.
Currently it works when deploying to heroku, where it upgrades npm to v2.7.x. However, a cf push
to bluemix fails with the console output showing:
registry "@shawnzhu/mybot" not found.
After reviewing the whole console output I realized it uses npm
v1.4.28 which doesn't support scoped packages.
How can I get npm v2.0.0+ in a node.js app in bluemix?