I am compiling keyman 12. I am getting below error.
I can see ‘lexical-model-types’ is linked to the keyman\common\lexical-model-types
But still the compiler is complaining about it.
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path C:\Users\login\AppData\Roaming\npm\node_modules\@keymanapp\lexical-model-types\package.json
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, open 'C:\Users\login\AppData\Roaming\npm\node_modules\@keymanapp\lexical-model-types\package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\login\AppData\Roaming\npm-cache\_logs\2019-11-03T15_41_05_587Z-debug.log
Could not link lexical-model-types
Failed to compile the language modeling layer module.
Hopefully you don’t need to run as Admin? Which issue was it that solved the problem? If it is moving drives then it could be an NPM bug that should be reported.
W drive is network drive per Windows 10. I open the lexical model “Junction” linked to W: drive. I was not able to open it. Although it was linked. It is perhaps a security measure to not allow symbolic link windows. I didn’t explore the solution, instead moved the source to C drive. Problem solved.