'Npm not open correctly

enter image description here

The NPM function should be like when I write NPM install firebase and then the firebase should be installed when I write that command but in this situation when I write that command or anything using the NPM command the result is the file is doesn't download or do nothing instead of that the command ask to open some file by choosing the type of file. I have done anything to fix this problem but nothing change.



Solution 1:[1]

Try to run

npm init

Beside that add to your question exactly the line you run and the error you get.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Effi Hol