Running tools/bin/mage js:build
fails while following the development instructions on github. I’m on the 3.10.1 tag in the hope it would be more stable but I see similar issues on top of the default branch.
$ tools/bin/mage js:build
Skipping DLL building (production mode)
npm ERR! Cannot read property 'matches' of undefined
npm ERR! A complete log of this run can be found in:
npm ERR! /home/dsmith/.npm/_logs/2020-11-24T07_15_22_993Z-debug.log
node:internal/modules/cjs/loader:903
throw err;
^
Error: Cannot find module 'yargs'
Require stack:
- /mnt/c/workspace/lorawan-stack/tools/mage/translations.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:900:15)
at Function.Module._load (node:internal/modules/cjs/loader:745:27)
at Module.require (node:internal/modules/cjs/loader:972:19)
at require (node:internal/modules/cjs/helpers:88:18)
at Object.<anonymous> (/mnt/c/workspace/lorawan-stack/tools/mage/translations.js:20:15)
at Module._compile (node:internal/modules/cjs/loader:1083:30)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1112:10)
at Module.load (node:internal/modules/cjs/loader:948:32)
at Function.Module._load (node:internal/modules/cjs/loader:789:14)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:72:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [ '/mnt/c/workspace/lorawan-stack/tools/mage/translations.js' ]
}
error Command "babel" not found.
npm ERR! code 1
npm ERR! path /mnt/c/workspace/lorawan-stack
npm ERR! command failed
npm ERR! command sh -c yarn babel pkg/webui
npm ERR! A complete log of this run can be found in:
npm ERR! /home/dsmith/.npm/_logs/2020-11-24T07_15_23_623Z-debug.log
Error: failed to install yarn: running "npm install --no-package-lock --no-save --production=false yarn" failed with exit code 1
running "node tools/mage/translations.js --backend-messages config/messages.json --locales pkg/webui/locales/.backend --backend-only" failed with exit code 1
running "npx yarn babel pkg/webui" failed with exit code 1