node.js – ENOENT, no such file or directory

node.js – ENOENT, no such file or directory

I believe the previous answer is the correct answer to this problem but I was getting this error when I tried installing npm package (see below) :

enter

The fix for me was : npm init --yes

enter

Tilde expansion is a shell thing. Write the proper pathname (probably /home/yourusername/Desktop/etcetcetc) or use
process.env.HOME + /Desktop/blahblahblah

node.js – ENOENT, no such file or directory

  1. First try npm install ,if the issue is not yet fixed try the following one after the other.
  2. npm cache clean ,then
  3. npm install -g npm,then
    npm install,Finally
  4. ng serve --o to run the project.
    Hope this will help….

Leave a Reply

Your email address will not be published.