node.js npm error message - system cannot find the path specified

前端 未结 6 642
执笔经年
执笔经年 2021-01-18 00:47

I have a strange error message I don\'t understand or can\'t get rid of. Secondly when I try to create express app on webstorm it can\'t find express. I\'m using windows 7 6

6条回答
  •  说谎
    说谎 (楼主)
    2021-01-18 01:09

    I spent days figuring out how to fix this. Finally, using Process Monitor program, I found out:

    1. npm was trying to access a file in %APPDATA%/Temp which no longer existed since I had uninstalled that program.
    2. I searched the registry keys for this path and found that this path was included in the *Computer\HKEY_USERS\S-1-5-21-1659004503-1897051121-1177238915-282167\Software\Microsoft\Command Processor\AutoRun* value.
    3. Note that this was not under HKEY_CURRENT_USER registry directory as mentioned in the comments above.
    4. After removing this registry key, everything works now.

    Hope this helps.

提交回复
热议问题