如何在OpenShift上更新npm?
我在部署时遇到问题,因为npm开始使用^ 1.2.3版本符号,并且它与我应用程序中当前的npm不兼容:
remote: npm ERR! Error: No compatible version found: through@'^2.3.4'
remote: npm ERR! Valid install targets:
remote: npm ERR! ["0.0.1","0.0.2","0.0.3","0.0.4","0.1.0","0.1.1","0.1.2","0.1.3","0.1.4","1.0.0","1.1.0","1.1.1","1.1.2","2.0.0","2.1.0","2.2.0","2.2.1","2.2.2","2.2.4","2.2.5","2.2.6","2.2.7","2.3.1","2.3.2","2.3.3","2.3.4"]
有没有办法解决这个问题,或者我不得不回到过时的套餐?
答案 0 :(得分:1)
OpenShift不提供对开发人员的root访问权限,但您仍然可以通过running your own nodejs binary in user space选择自定义版本的npm。
开发人员还可以package up their own custom nodejs cartridge,允许团队以可重用的方式定义和标准化他们的依赖关系。
的答案