Unable to Startup Error: Cannot find module 'C:\Users\User\.leon\server\dist\pre-check.js'
LSXAxeller opened this issue · comments
After a clean installation and leon check it didn't started as supposed and give the error below.
Specs
- Leon version:1.0.0-beta.8
- OS (or browser) version: Windows 10 Pro Build 19041
- Node.js version: v20.4.0
- Complete "leon check" (or "npm run check") output:
leon@1.0.0-beta.8 check
ts-node scripts/check.js
.: CHECKING :.
ℹ️ Leon version
✅ 1.0.0-beta.8
ℹ️ Environment
✅ Total RAM: 15.87 GB
✅ {"type":"Windows_NT","platform":"win32","arch":"x64","cpus":12,"release":"10.0.19041","osName":"Windows 10","distro":null}
ℹ️ node --version
✅ v20.4.0
ℹ️ npm --version
✅ 9.7.2
✅ Python bridge version: 1.0.1
ℹ️ Executing a skill...
ℹ️ bridges\python\dist\win-amd64\leon-python-bridge "C:\Users\PRIME.leon\scripts\assets\intent-object.json"
✅ {"domain": "leon", "skill": "random_number", "action": "run", "lang": "en", "utterance": "Give me a random number", "entities": [], "slots": {}, "output": {"type": "end", "codes": ["63"], "speech": "63", "core": {}, "options": {}}}
ℹ️ Skill execution time: 339ms
✅ TCP server version: 1.0.0
ℹ️ Starting the TCP server...
ℹ️ tcp_server\dist\win-amd64\leon-tcp-server en
✅ The TCP server can successfully start
ℹ️ TCP server startup time: 6448ms
ℹ️ Global resolvers NLP model state
✅ Found and valid
ℹ️ Skills resolvers NLP model state
✅ Found and valid
ℹ️ Main NLP model state
✅ Found and valid
ℹ️ Amazon Polly TTS
ℹ️ Google Cloud TTS/STT
ℹ️ Watson TTS
ℹ️ Offline TTS
ℹ️ Watson STT
ℹ️ Offline STT
.: REPORT :.
ℹ️ Here is the diagnosis about your current setup
✅ Run
✅ Run skills
✅ Reply you by texting
✅ Start the TCP server
✅ Hooray! Leon can run correctly
ℹ️ If you have some yellow warnings, it is all good. It means some entities are not yet configured
.: REPORT URL :.
ℹ️ Sending report...
🚨 Failed to send report: Error: read ECONNRESET
- (optional) Leon skill version:
Expected Behavior
Successful Startup
Actual Behavior
leon@1.0.0-beta.8 start
cross-env LEON_NODE_ENV=production node server/dist/pre-check.js && node server/dist/index.js
node:internal/modules/cjs/loader:1051
throw err;
^
Error: Cannot find module 'C:\Users\PRIME.leon\server\dist\pre-check.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:1048:15)
at Module._load (node:internal/modules/cjs/loader:901:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12)
at node:internal/main/run_main_module:23:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Node.js v20.4.0
Error: Command failed with exit code 1: npm start
How Do We Reproduce?
Do a Normal Clean Install