You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
starting in v12.0.2, cron or systemd timer task netlify deploy --debug --prod --dir . fails with the error below. This issue presents itself under node 16, 18, and 20.
tail -f /var/log/syslog
Oct 16 16:35:43 raspberrypi netlify[24744]: file:///home/pi/.nvm/versions/node/v18.18.2/lib/node_modules/netlify-cli/bin/run.mjs:27
Oct 16 16:35:43 raspberrypi netlify[24744]: await program.parseAsync(argv)
Oct 16 16:35:43 raspberrypi netlify[24744]: ^^^^^
Oct 16 16:35:43 raspberrypi netlify[24744]: SyntaxError: Unexpected reserved word
Oct 16 16:35:43 raspberrypi netlify[24744]: at Loader.moduleStrategy (internal/modules/esm/translators.js:133:18)
Oct 16 16:35:43 raspberrypi netlify[24744]: at async link (internal/modules/esm/module_job.js:42:21)
Steps to reproduce
npm install -g netlify-cli@12.0.2
create /etc/systemd/system/netlify.service
[Unit]
Description=deployment of rsynced wxwee html files to netlify
Describe the bug
starting in v12.0.2, cron or systemd timer task
netlify deploy --debug --prod --dir .
fails with the error below. This issue presents itself under node 16, 18, and 20.Steps to reproduce
[Unit]
Description=deployment of rsynced wxwee html files to netlify
[Service]
Type=simple
User=pi
ExecStart=/home/pi/.nvm/versions/node/v18.18.2/bin/netlify deploy --prod --dir /home/pi/rsync_target_dir
WorkingDirectory=/home/pi/rsync_target_dir
[Install]
WantedBy=multi-user.target
Configuration
N/A
Environment
The text was updated successfully, but these errors were encountered: