shopify-monitor
shopify-monitor copied to clipboard
Getting an NPM error
[email protected] start /home/pi/shopify-monitor node index.js
/home/pi/shopify-monitor/src/classes/Task.js:31 start = async () => { ^
SyntaxError: Unexpected token =
at Module._compile (internal/modules/cjs/loader.js:723:23)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object.node index.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in: npm ERR! /home/pi/.npm/_logs/2020-10-17T23_04_55_465Z-debug.log
Check your node version. In the readme it states that your node version should be > 12.1.63.
Check your version of node with node -v
npm@latest -g
should update your node version to the latest version.
A similar issue is stated here (https://github.com/Dam998/shopify-monitor/issues/5)
https://github.com/Dam998/shopify-monitor#note-ive-git-version-2262-node-js-version-12163-mongodb-version-426-if-you-have-any-problems-with-the-monitor-try-to-update-your-setup-with-my-versions