Wordpress npm run start ($SHELL environment variable is not set.)

When trying to run the npm run start command, the console throws an error - $SHELL environment variable is not set.

    at Object.run (/shared/httpd/project/wp-content/themes/theme_name/node_modules/chokidar-cli/utils.js:16:15)
    at run (/shared/httpd/project/wp-content/themes/theme_name/node_modules/chokidar-cli/index.js:225:18)
    at invokeFunc (/shared/httpd/project/wp-content/themes/theme_name/node_modules/lodash.debounce/index.js:160:19)
    at trailingEdge (/shared/httpd/project/wp-content/themes/theme_name/node_modules/lodash.debounce/index.js:207:14)
    at Timeout.timerExpired [as _onTimeout] (/shared/httpd/project/wp-content/themes/theme_name/node_modules/lodash.debounce/index.js:195:14)
    at listOnTimeout (node:internal/timers:559:17)
    at processTimers (node:internal/timers:502:7)