Thursday, August 15, 2019

Error : verbose stack Error: ENOENT: no such file or directory, open 'Roaming\npm-cache\_npx\1768\package.json


When running npx (with any arguments, but -v is easiest to test) from the global install folder, the following error is produced.




The above error is due the white space contain in your username of PC. The command npx create-react-app doesn't work in this situation and shows error.

Solution : 


  1. run npm config edit to edit your config
  2. change cache path,e.g.
    from cache=D:\program file\npm-cache to cache=D:\progra~1\npm-cache



No comments:

Post a Comment

ASP.NET Core

 Certainly! Here are 10 advanced .NET Core interview questions covering various topics: 1. **ASP.NET Core Middleware Pipeline**: Explain the...