MODULE_NOT_FOUND okra-node on canvas README.md canvas init project
RightFootConsulting opened this issue · 2 comments
RightFootConsulting commented
Upgraded to latest npm,
ran npm install -g @canvas-js/cli
ran canvas init canvasChat
GOT:
node:internal/modules/cjs/loader:1144
const err = new Error(message);
^
Error: Cannot find module '../build/x64-win32/okra.node'
Require stack:
- C:\Users\steve\AppData\Roaming\nvm\v20.11.0\node_modules@canvas-js\cli\node_modules@canvas-js\okra-node\lib\index.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1144:15)
at Module._load (node:internal/modules/cjs/loader:985:27)
at Module.require (node:internal/modules/cjs/loader:1235:19)
at require (node:internal/modules/helpers:176:18)
at file:///C:/Users/steve/AppData/Roaming/nvm/v20.11.0/node_modules/@canvas-js/cli/node_modules/@canvas-js/okra-node/lib/index.js:11:14
at ModuleJob.run (node:internal/modules/esm/module_job:218:25)
at async ModuleLoader.import (node:internal/modules/esm/loader:329:24)
at async loadESM (node:internal/process/esm_loader:28:7)
at async handleMainPromise (node:internal/modules/run_main:113:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\Users\steve\AppData\Roaming\nvm\v20.11.0\node_modules\@canvas-js\cli\node_modules\@canvas-js\okra-node\lib\index.js'
]
}
Node.js v20.11.0
Expected an app to be initialized.
GGAlanSmithee commented
I would say this is the same as #274
It worked for me on WSL, just FYI @RightFootConsulting if you have access to that
raykyri commented
Closing this because of inactivity and because it seemed like it worked with WSL... we don't have a Windows setup for testing right now, but please feel free to reopen if it happens again.