Open tballmsft opened 1 year ago
Still failing. See following script (after uninstalling makecode):
$ npm install -g makecode
changed 24 packages in 771ms
3 packages are looking for funding
run `npm fund` for details
tball@oldsurface MINGW64 /c/github/microcode (main)
$ mkc --version
node:internal/modules/cjs/loader:1050
throw err;
^
Error: Cannot find module '../../makecode-core/built/commands'
Require stack:
- C:\Users\tball\AppData\Roaming\npm\node_modules\makecode\built\cli.js
- C:\Users\tball\AppData\Roaming\npm\node_modules\makecode\makecode
←[90m at Module._resolveFilename (node:internal/modules/cjs/loader:1047:15)←[39m
←[90m at Module._load (node:internal/modules/cjs/loader:893:27)←[39m
←[90m at Module.require (node:internal/modules/cjs/loader:1113:19)←[39m
←[90m at require (node:internal/modules/cjs/helpers:103:18)←[39m
at Object.<anonymous> (C:\Users\tball\AppData\Roaming\npm\node_modules\←[4mmakecode←[24m\built\cli.js:7:20)
←[90m at Module._compile (node:internal/modules/cjs/loader:1226:14)←[39m
←[90m at Module._extensions..js (node:internal/modules/cjs/loader:1280:10)←[39m
←[90m at Module.load (node:internal/modules/cjs/loader:1089:32)←[39m
←[90m at Module._load (node:internal/modules/cjs/loader:930:12)←[39m
←[90m at Module.require (node:internal/modules/cjs/loader:1113:19)←[39m {
code: ←[32m'MODULE_NOT_FOUND'←[39m,
requireStack: [
←[32m'C:\\Users\\tball\\AppData\\Roaming\\npm\\node_modules\\makecode\\built\\cli.js'←[39m,
←[32m'C:\\Users\\tball\\AppData\\Roaming\\npm\\node_modules\\makecode\\makecode'←[39m
]
}
Node.js v18.14.0
Hm could you run npm list -g makecode
real quick and see what it shows? I tried what you had and it seemed to work on my end
$ npm install -g makecode
added 24 packages, and audited 26 packages in 1s
found 0 vulnerabilities
$ mkc --version
1.1.0
$ npm list -g makecode
C:\Program Files\nodejs -> .\
└── makecode@1.1.0
Same here, resolved by add global makecode-core
npm install -g makecode-core
Try npm install -g makecode@latest