elf: Cannot find module 'typescript'
Which @ngneat/elf-* package(s) are the source of the bug?
CLI
Is this a regression?
No
Description
I was trying to follow the instruction on setting up CLI from here https://ngneat.github.io/elf/docs/cli and received the following errors when executing “npx @ngneat/elf-cli repo” Note that, typescript is installed globally and in the project as well. Also I noticed that some elf packages are installed under dependencies instead of devDependencies in package.json, for example: “@ngneat/elf-cli-ng”: “^1.0.0-beta.1”, “@ngneat/elf-devtools”: “^1.0.0-beta.4”,
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
npx @ngneat/elf-cli repo
npx: installed 193 in 10.354s
Error: Cannot find module 'typescript'
Require stack:
- C:\Users\user\AppData\Roaming\npm-cache\_npx\9896\node_modules\@ngneat\elf-cli\lib\builders\repo-builder.js
- C:\Users\user\AppData\Roaming\npm-cache\_npx\9896\node_modules\@ngneat\elf-cli\lib\commands\repo.js
- C:\Users\user\AppData\Roaming\npm-cache\_npx\9896\node_modules\@ngneat\elf-cli\node_modules\@oclif\config\lib\plugin.js
- C:\Users\user\AppData\Roaming\npm-cache\_npx\9896\node_modules\@ngneat\elf-cli\node_modules\@oclif\config\lib\config.js
- C:\Users\user\AppData\Roaming\npm-cache\_npx\9896\node_modules\@ngneat\elf-cli\node_modules\@oclif\config\lib\index.js
- C:\Users\user\AppData\Roaming\npm-cache\_npx\9896\node_modules\@ngneat\elf-cli\node_modules\@oclif\command\lib\command.js
- C:\Users\user\AppData\Roaming\npm-cache\_npx\9896\node_modules\@ngneat\elf-cli\node_modules\@oclif\command\lib\index.js
- C:\Users\user\AppData\Roaming\npm-cache\_npx\9896\node_modules\@ngneat\elf-cli\bin\run
Code: MODULE_NOT_FOUND
Please provide the environment you discovered this bug in
DEV
Anything else?
No response
Do you want to create a pull request?
No
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 30 (16 by maintainers)
@NetanelBasal thanks very much for your speedy support, really appreciate it