'I am facing npm install issue in VS code

qasimnoman@Qasims-MacBook-Pro ~ % npm install npm ERR! code ENOENT npm ERR! syscall open npm ERR! path /Users/qasimnoman/package.json npm ERR! errno -2 npm ERR! enoent ENOENT: no such file or directory, open '/Users/qasimnoman/package.json' npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent

npm ERR! A complete log of this run can be found in: npm ERR! /Users/qasimnoman/.npm/_logs/2022-04-08T12_59_39_855Z-debug-0.log



Solution 1:[1]

Looks like you have no package.json in your current directory.

Are you in the right directory ?

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 Wlad