Node.js   发布时间:2022-04-24  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了node.js – 部署到Heroku时的Meteor构建中断大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我没有更改任何依赖项,但突然我的构建在我部署到Heroku时破坏了.有关更多信息,请参阅下面的错

-----> Fetching set buildpack https://github.com/AdmitHub/meteor-buildpack-horse.git... done
-----> Node.js app detected
-----> Installing node
-----> Installing meteor
Downloading Meteor diStribution
Meteor 1.3 has been installed in your home directory (~/.meteor).
Now you need to do one of the following:
  (1) Add "$HOME/.meteor" to your path,or
  (2) Run this command as root:
        cp "/tmp/buildpack20160403-165-1y59l1z/meteor-j9kn/.meteor/packages/meteor-tool/1.3.0_3/mt-os.linux.x86_64/scripts/admin/launch-meteor" /usr/bin/meteor
Then to get started,take a look at 'meteor --Help' or see the docs at
docs.meteor.com.
-----> Upgrading meteor to METEOR@1.2.1
Installed. Run 'meteor update --release 1.2.1' inside of a particular project
directory to update that project to Meteor 1.2.1.
-----> Bundling bundle
While removing platforms:
error: android: platform is not in this project
-----> Building Meteor with ROOT_URL: https://####.herokuapp.com
npm-container: updating npm dependencies -- scrap,open-graph,future,react-linkify,externalify,react-modal,react-dom...
=> Errors while initializing project:
While building package npm-container:
error: Couldn't install npm packages from npm-shrinkwrap: Command Failed: npm
WARN package.json packages-for-meteor-npm-container@0.0.0 No description
npm WARN package.json packages-for-meteor-npm-container@0.0.0 No repository
field.
npm WARN package.json packages-for-meteor-npm-container@0.0.0 No README data
npm WARN deprecated CSSSELEct@0.4.1: the module is Now available as
'css-SELEct'
npm WARN deprecated CSSSELEct@0.7.0: the module is Now available as
'css-SELEct'
npm WARN ENGIne escodegen@1.8.0: wanted: {"node":">=0.12.0"} (current:
{"node":"0.10.40","npm":"1.4.28"})
npm WARN deprecated CSSwhat@0.4.7: the module is Now available as 'css-what'
npm ERR! Error: version not found: ansi-styles@2.2.0
npm ERR!     at
/tmp/buildpack20160403-165-1y59l1z/meteor-j9kn/.meteor/packages/meteor-tool/.1.1.10.11us29f++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/npm/lib/cache/add-named.js:125:12
npm ERR!     at saved
(/tmp/buildpack20160403-165-1y59l1z/meteor-j9kn/.meteor/packages/meteor-tool/.1.1.10.11us29f++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/npm/node_modules/npm-registry-client/lib/get.js:167:7)
npm ERR!     at Object.oncomplete (fs.js:108:15)
npm ERR! If you need Help,you may report this *entire* log,npm ERR! including the npm and node versions,at:
npm ERR!     <http://github.com/npm/npm/issues>
npm ERR! System Linux 3.13.0-79-generic
npm ERR! command
"/tmp/buildpack20160403-165-1y59l1z/meteor-j9kn/.meteor/packages/meteor-tool/.1.1.10.11us29f++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/node"
"/tmp/buildpack20160403-165-1y59l1z/meteor-j9kn/.meteor/packages/meteor-tool/.1.1.10.11us29f++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/npm"
"install"
npm ERR! cwd
/tmp/build_99da0b7813d9d5f66b76750d44ec8399/####-af203ae940e85f2aa3e34bfa11a1028cc9cc7c8c/packages/npm-container/.npm/package-new-13b38xe
npm ERR! node -v v0.10.40
npm ERR! npm -v 1.4.28
npm ERR! not ok @R_344_6756@
npm WARN package.json packages-for-meteor-npm-container@0.0.0 No description
npm WARN package.json packages-for-meteor-npm-container@0.0.0 No repository
field.
npm WARN package.json packages-for-meteor-npm-container@0.0.0 No README data
npm WARN deprecated CSSSELEct@0.4.1: the module is Now available as
'css-SELEct'
npm WARN deprecated CSSSELEct@0.7.0: the module is Now available as
'css-SELEct'
npm WARN ENGIne escodegen@1.8.0: wanted: {"node":">=0.12.0"} (current:
{"node":"0.10.40",at:
npm ERR!     <http://github.com/npm/npm/issues>
npm ERR! System Linux 3.13.0-79-generic
npm ERR! command
"/tmp/buildpack20160403-165-1y59l1z/meteor-j9kn/.meteor/packages/meteor-tool/.1.1.10.11us29f++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/node"
"/tmp/buildpack20160403-165-1y59l1z/meteor-j9kn/.meteor/packages/meteor-tool/.1.1.10.11us29f++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/npm"
"install"
npm ERR! cwd
/tmp/build_99da0b7813d9d5f66b76750d44ec8399/#####-af203ae940e85f2aa3e34bfa11a1028cc9cc7c8c/packages/npm-container/.npm/package-new-13b38xe
npm ERR! node -v v0.10.40
npm ERR! npm -v 1.4.28
npm ERR! not ok @R_344_6756@
 !     Push rejected,Failed to compile Node.js app
```

我想知道这可能是上周所有npm模块被拆除的结果.任何方向将不胜感激.

谢谢!

解决方法

@H_403_20@ buildpack首先安装Meteor 1.3然后检查您的应用程序的要求,然后将其更改回Meteor 1.2.更新/降级回1.2并不总能正确解决依赖关系 Cannot downgrade.这可能是不满足依赖关系节点版本要求的一个原因.您需要在本地使用1.3解决依赖性问题,然后使用buildpack进行部署,或者使用安装1.2的buildpack.

大佬总结

以上是大佬教程为你收集整理的node.js – 部署到Heroku时的Meteor构建中断全部内容,希望文章能够帮你解决node.js – 部署到Heroku时的Meteor构建中断所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。