简体   繁体   English

试图部署 meteor 应用程序。 运行 NPM INSTALL 时失败

[英]attempting to deploy meteor application. Fails when running NPM INSTALL

Sorry for the following wall of text.对不起下面的文字墙。

So I've been using someone else's meteor app.所以我一直在使用别人的 meteor 应用程序。 (they open sourced it) It's currently un-built and I've been running it on dev-mode. (他们开源了它)它目前尚未构建,我一直在开发模式下运行它。 It's a lot slower than expected and users are having issues connecting to my local machine.它比预期的要慢得多,并且用户在连接到我的本地计算机时遇到问题。 So I'm attempting to deploy the app by following: https://guide.meteor.com/deployment.html#deploying .所以我试图通过以下方式部署应用程序: https://guide.meteor.com/deployment.html#deploying

So I've been getting errors when trying to run npm i .所以我在尝试运行npm i时遇到了错误。 My dad recommended me to run npm cache verify and try again, then npm cache clean as a last resort.我爸爸建议我运行npm cache verify试,然后将npm cache clean作为最后的手段。 Neither worked and I've still am getting errors.两者都不起作用,我仍然遇到错误。 Although as soon as I tried again after running npm cache verify the error amount skyrocketed.虽然我在运行npm cache verify错误量猛增。 I unfortunately don't have the errors I got before I cleared my cache but I have the current logs here: https://pastebin.com/dAcRnE9v But here is a snapshot:不幸的是,我在清除缓存之前没有遇到错误,但我在这里有当前日志: https://pastebin.com/dAcRnE9v但这是一个快照:

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! fibers@2.0.2 install: `node build.js || nodejs build.js`
npm ERR! Exit status 1
npm ERR! Failed at the fibers@2.0.2 install script.

I honestly don't have any idea what todo.老实说,我不知道要做什么。 I've never worked with meteor before, nor the fibers module that's failing.我以前从未使用过 meteor,也从未使用过出现故障的光纤模块。 I don't even know if this is the right place I should be asking for help.我什至不知道这是否是我应该寻求帮助的正确地方。

I once had fibers npm package in my package.json which caused a similar error.我曾经在我的 package.Z466DEEC76ECDF5FCA6D038571F6Z 中有fibers npm package 导致类似的错误。2 Once I removed it everything built just fine.一旦我删除它,一切都构建得很好。

You can't change Meteor's version of node - for compatibility reasons it bundles node/npm with Meteor to protect you.您无法更改 Meteor 的节点版本 - 出于兼容性原因,它将 node/npm 与 Meteor 捆绑在一起以保护您。 Just prefix all your npm/node commands with meteor like this:只需在所有 npm/node 命令前面加上meteor ,如下所示:

meteor npm install

It won't use the node version (13.x) that you have installed它不会使用您已安装的节点版本(13.x)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM