leon
leon copied to clipboard
Unable to Startup Error: Cannot find module 'C:\Users\User\.leon\server\dist\pre-check.js'
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:
[email protected] 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 ⚠️ Amazon Polly TTS is not yet configured
ℹ️ Google Cloud TTS/STT ⚠️ Google Cloud TTS/STT is not yet configured
ℹ️ Watson TTS ⚠️ Watson TTS is not yet configured
ℹ️ Offline TTS ⚠️ Cannot find bin/flite/flite. You can set up the offline TTS by running: "npm run setup:offline-tts"
ℹ️ Watson STT ⚠️ Watson STT is not yet configured
ℹ️ Offline STT ⚠️ Cannot find bin/coqui/huge-vocabulary.scorer. You can setup the offline STT by running: "npm run setup:offline-stt"
.: REPORT :. ℹ️ Here is the diagnosis about your current setup ✅ Run ✅ Run skills ✅ Reply you by texting ✅ Start the TCP server ⚠️ Amazon Polly text-to-speech ⚠️ Google Cloud text-to-speech ⚠️ Watson text-to-speech ⚠️ Offline text-to-speech ⚠️ Google Cloud speech-to-text ⚠️ Watson speech-to-text ⚠️ Offline speech-to-text
✅ 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
[email protected] 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