Open rhysyngsun opened 2 years ago
Right now the following error is causing publishing to fail:
2022-06-27T14:40:13.962426+00:00 app[web.1]: npm WARN config production Use `--omit=dev` instead. 2022-06-27T14:40:16.898867+00:00 app[web.1]: npm ERR! code ERESOLVE 2022-06-27T14:40:16.901008+00:00 app[web.1]: npm ERR! ERESOLVE unable to resolve dependency tree 2022-06-27T14:40:16.901121+00:00 app[web.1]: npm ERR! 2022-06-27T14:40:16.901201+00:00 app[web.1]: npm ERR! While resolving: @mitodl/ocw-to-hugo@1.49.0 2022-06-27T14:40:16.901245+00:00 app[web.1]: npm ERR! Found: eslint@5.16.0 2022-06-27T14:40:16.901289+00:00 app[web.1]: npm ERR! node_modules/eslint 2022-06-27T14:40:16.901332+00:00 app[web.1]: npm ERR! dev eslint@"^5.0.0" from the root project 2022-06-27T14:40:16.901376+00:00 app[web.1]: npm ERR! peer eslint@">= 4.12.1" from babel-eslint@10.1.0 2022-06-27T14:40:16.901488+00:00 app[web.1]: npm ERR! node_modules/babel-eslint 2022-06-27T14:40:16.901531+00:00 app[web.1]: npm ERR! dev babel-eslint@"^10.0.3" from the root project 2022-06-27T14:40:16.901575+00:00 app[web.1]: npm ERR! peer babel-eslint@"10.x" from eslint-config-mitodl@0.0.7 2022-06-27T14:40:16.901626+00:00 app[web.1]: npm ERR! node_modules/eslint-config-mitodl 2022-06-27T14:40:16.901669+00:00 app[web.1]: npm ERR! dev eslint-config-mitodl@"^0.0.7" from the root project 2022-06-27T14:40:16.901713+00:00 app[web.1]: npm ERR! 2022-06-27T14:40:16.901756+00:00 app[web.1]: npm ERR! Could not resolve dependency: 2022-06-27T14:40:16.901799+00:00 app[web.1]: npm ERR! peer eslint@"6.x" from eslint-config-mitodl@0.0.7 2022-06-27T14:40:16.901842+00:00 app[web.1]: npm ERR! node_modules/eslint-config-mitodl 2022-06-27T14:40:16.901938+00:00 app[web.1]: npm ERR! dev eslint-config-mitodl@"^0.0.7" from the root project 2022-06-27T14:40:16.901983+00:00 app[web.1]: npm ERR! 2022-06-27T14:40:16.902033+00:00 app[web.1]: npm ERR! Fix the upstream dependency conflict, or retry 2022-06-27T14:40:16.902076+00:00 app[web.1]: npm ERR! this command with --force, or --legacy-peer-deps 2022-06-27T14:40:16.902132+00:00 app[web.1]: npm ERR! to accept an incorrect (and potentially broken) dependency resolution. 2022-06-27T14:40:16.902176+00:00 app[web.1]: npm ERR! 2022-06-27T14:40:16.902198+00:00 app[web.1]: npm ERR! See /app/.npm/eresolve-report.txt for a full report. 2022-06-27T14:40:16.903746+00:00 app[web.1]: 2022-06-27T14:40:16.903747+00:00 app[web.1]: npm ERR! A complete log of this run can be found in: 2022-06-27T14:40:16.903747+00:00 app[web.1]: npm ERR! /app/.npm/_logs/2022-06-27T14_40_13_924Z-debug-0.log 2022-06-27T14:40:16.927359+00:00 app[web.1]: Exception found when handling a message 2022-06-27T14:40:16.927361+00:00 app[web.1]: Traceback (most recent call last): 2022-06-27T14:40:16.927362+00:00 app[web.1]: File "/app/bot.py", line 1367, in handle_message 2022-06-27T14:40:16.927363+00:00 app[web.1]: await self.run_command( 2022-06-27T14:40:16.927363+00:00 app[web.1]: File "/app/bot.py", line 1339, in run_command 2022-06-27T14:40:16.927364+00:00 app[web.1]: await command.command_func( 2022-06-27T14:40:16.927364+00:00 app[web.1]: File "/app/bot.py", line 763, in publish 2022-06-27T14:40:16.927364+00:00 app[web.1]: await publish( 2022-06-27T14:40:16.927365+00:00 app[web.1]: File "/app/publish.py", line 111, in publish 2022-06-27T14:40:16.927365+00:00 app[web.1]: await upload_to_npm( 2022-06-27T14:40:16.927365+00:00 app[web.1]: File "/app/publish.py", line 92, in upload_to_npm 2022-06-27T14:40:16.927366+00:00 app[web.1]: await check_call(["npm", "install", "--production=false"], cwd=project_dir) 2022-06-27T14:40:16.927367+00:00 app[web.1]: File "/app/async_subprocess.py", line 16, in check_call 2022-06-27T14:40:16.927367+00:00 app[web.1]: raise AsyncCalledProcessError(returncode, args if shell else args[0]) 2022-06-27T14:40:16.927370+00:00 app[web.1]: exception.AsyncCalledProcessError: Command 'npm' returned non-zero exit status 1.. stdout=None, stderr=None
Right now the following error is causing publishing to fail: