Folder remains empty after installing node package

Viewed 17

In an empty folder with command line:

npm i brain.js

I get:

npm ERR! code 1
npm ERR! path C:\Users\John\Desktop\aiai\node_modules\gl
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c C:\Users\John\AppData\Local\Temp\install-5d165e4d.cmd
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@7.1.2
npm ERR! gyp info using node@16.17.0 | win32 | x64
...

The folder remains empty.

If I try this with:

npm i react

I get

  1. node-modules folder
  2. package.json
  3. package-lock.json

I tried to delete and reinstall node.js but the problem everything is the same.

0 Answers
Related