所有项目都在发生这种情况,即使以前的项目也是如此。新创建的全新create-react-app项目也会发生这种情况。
npm ERR! syscall open
npm ERR! path C:\Users\Henry Peters\Desktop\express\package.json
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, open 'C:\Users\Henry Peters\Desktop\express\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! C:\Users\Henry Peters\AppData\Roaming\npm-cache\_logs\2019-12-23T14_06_14_505Z-debug.log
PS C:\Users\Henry Peters\Desktop\express>```