Troubleshooting common problems ‐ Lumos Language - Uchida16104/Lumos-Language GitHub Wiki

case1:

I can't install Lumos Language from npm.

on your terminal:

npm i @uchida16104/lumos-language
error message:
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@uchida16104%2flumos-language - Not found
npm ERR! 404 
npm ERR! 404  '@uchida16104/lumos-language@*' is not in this registry.
npm ERR! 404 
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

>> Please install the package without scope.

Correct code (On your terminal):

npm i lumos-language

case2:

for i=1to5{let square=i*i}
error message:
! Invalid expression: for i=1to5{let square i*i}

>> Please check whether there are spaces in the code.

Correct code:

for i = 1 to 5 {  let square = i * i  }

case3:

let x = 5 while (x < 10) {
 let x = x + 1
 } x
error message:
  1. ! Invalid expression: while (x < 10) {
  2. ! Invalid expression: x + 1
  3. ! Invalid expression: }

>> Please write Lumos language code in a single line. If there are multiple syntaxes, execute the previous code once, press Enter, and then execute the next code.

Correct code (Execution order):

  1. let x = 5
  2. while (x < 10) {  let x = x + 1  }
  3. x
⚠️ **GitHub.com Fallback** ⚠️