I have loaded node.js onto my laptop and used the command line to download the lodash file.
On re-running I had a similar message re semver which I again downloaded.
I still could not compile my program.
I then removed the Workbench again following the uninstall instructions and re-installed the work bench. When I now try and complie my program in OS 2.3.1 for an electron I get the following messages in the terminal:
- Executing task: make -f ‘C:\Users\drtom.particle\toolchains\buildscripts\1.10.0\Makefile’ compile-user -s
! Error in particle-cli:
! Unexpected token ‘export’
! See C:\Users\drtom\AppData\Local\particle\error.log for more info.
make: *** [C:\Users\drtom.particle\toolchains\buildscripts\1.10.0\Makefile:37: c:/ATC_data/Particle/Blink_with_SoC_reporting_17Oct21/src/Blink_with_SoC_reporting_17Oct21.cpp] Error 1
-
The terminal process “C:\Users\drtom.particle\toolchains\buildtools\1.1.1\bin\bash.exe ‘-c’, ‘make -f ‘C:\Users\drtom.particle\toolchains\buildscripts\1.10.0\Makefile’ compile-user -s’” terminated with exit code: 2.
-
Press any key to close the terminal.
And in the errorlog file
SyntaxError: Unexpected token ‘export’
at wrapSafe (internal/modules/cjs/loader.js:1072:16)
at Module._compile (internal/modules/cjs/loader.js:1122:27)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:1178:10)
at Module.load (internal/modules/cjs/loader.js:1002:32)
at Function.Module._load (internal/modules/cjs/loader.js:901:14)
at Module.require (internal/modules/cjs/loader.js:1044:19)
at require (internal/modules/cjs/helpers.js:77:18)
at Object. (C:\Users\drtom\AppData\Local\particle\node_modules\particle-cli\node_modules\chalk\index.js:2:28)
at Module._compile (internal/modules/cjs/loader.js:1158:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:1178:10)
2023/03/30 11:47:35 Time since last update 7m44.3475922s, update in background
What next?
Tom Chamberlain