npm install is missing modules

前端 未结 6 1722
广开言路
广开言路 2021-02-04 01:53

Before I can run gulp in my project I need to run npm install. This works except on my computer, because I get the following error:

Err         


        
6条回答
  •  长情又很酷
    2021-02-04 02:21

    This worked for me. By commenting 3 lines in C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\polyfills.js.

    Refer [https://flaviocopes.com/cb-apply-not-a-function/]

    // fs.stat = statFix(fs.stat) # Line: 61
    // fs.fstat = statFix(fs.fstat) # Line: 62
    // fs.lstat = statFix(fs.lstat) # Line: 63
    

提交回复
热议问题