部署到Heroku失败

此命令正在运行git push heroku master时,我无法在Heroku上部署我的应用程序,但是由于node_modules中的语法错误,该应用程序失败。

remote: node_modules/mixin-deep/index.js -> dist/node_modules/mixin-deep/index.js
remote: node_modules/mixin-deep/node_modules/is- extendable/index.js -> dist/node_modules/mixin- deep/node_modules/is-extendable/index.js
remote: SyntaxError: node_modules/mkdirp/bin/cmd.js: 'return' outside of function (13:4)
remote: 11 | if (argv.help) {
remote: 12 | fs.createReadStream(__dirname + '/usage.txt').pipe(process.stdout);
remote: > 13 | return;
remote: | ^
remote: 14 | }

remote: 16 | var paths = argv._.slice();
remote: npm ERR! code ELIFECYCLE
remote: npm ERR! errno 1
remote: npm ERR! backend@1.0.0 build: `node node_modules/babel-cli/bin/babel.js ./ --source-maps --out-dir dist`
remote: npm ERR! Exit status 1
remote: npm ERR!
remote: npm ERR! Failed at the backend@1.0.0 build script.
remote: npm ERR! This is probably not a problem with npm. There is likely
additional logging output above.
remote:

有人在GitHub上解决了相同的问题,但我仍然不明白,如果有人知道更好的错误修复方法或可以帮助在GitHub上详细说明解决方案,那将是超级好。链接https://github.com/fsevents/fsevents/issues/184

canjiahuiyi 回答:部署到Heroku失败

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3091439.html

大家都在问