Error when trying to install (I have already installed @types/node
)
PS C:\laragon\www\flarum> npm install -g flarum-cli
npm ERR! code 2
npm ERR! git dep preparation failed
npm ERR! command C:\laragon\bin\nodejs\node-v14\node.exe C:\laragon\bin\nodejs\node-v14\node_modules\npm\bin\npm-cli.js install --force --cache=C:\Users\Maicol\AppData\Local\npm-cache --prefer-offline=false --prefer-online=false --offline=false --no-progress --no-save --no-audit
npm ERR! npm WARN using --force Recommended protections disabled.
npm ERR! npm ERR! code 2
npm ERR! npm ERR! path C:\Users\Maicol\AppData\Local\npm-cache\_cacache\tmp\git-clone-ab5013f3
npm ERR! npm ERR! command failed
npm ERR! npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c tsc
npm ERR! npm ERR! src/index.ts(1,30): error TS2307: Cannot find module 'events' or its corresponding type declarations.
npm ERR! npm ERR! src/index.ts(2,18): error TS2307: Cannot find module 'path' or its corresponding type declarations.
npm ERR! npm ERR! src/index.ts(3,23): error TS2307: Cannot find module 'vinyl-file' or its corresponding type declarations.
npm ERR! npm ERR! src/index.ts(4,18): error TS2307: Cannot find module 'vinyl' or its corresponding type declarations.
npm ERR! npm ERR! src/index.ts(5,29): error TS2307: Cannot find module 'stream' or its corresponding type declarations.
npm ERR! npm ERR! src/index.ts(9,10): error TS2580: Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.
npm ERR! npm ERR! src/index.ts(10,11): error TS2580: Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.
npm ERR! npm ERR! src/index.ts(42,10): error TS2339: Property 'emit' does not exist on type 'Store'.
npm ERR! npm ERR! src/index.ts(54,19): error TS2550: Property 'values' does not exist on type 'ObjectConstructor'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2017' or later.
npm ERR! npm ERR! src/index.ts(59,5): error TS2304: Cannot find name 'setImmediate'.
npm ERR!
npm ERR! npm ERR! A complete log of this run can be found in:
npm ERR! npm ERR! C:\Users\Maicol\AppData\Local\npm-cache\_logs\2021-07-20T13_09_39_208Z-debug.log
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Maicol\AppData\Local\npm-cache\_logs\2021-07-20T13_09_40_192Z-debug.log