Error: Cannot find module 'time-grunt'

前端 未结 3 1058
孤城傲影
孤城傲影 2021-02-19 03:41

I try install time-grunt local and global, clear npm cache, update npm, but nothing helps. I get:

 Loading \"Gruntfile.js\" tasks...ERROR
 Error: Cannot find mod         


        
3条回答
  •  失恋的感觉
    2021-02-19 04:23

    I ended up installing all grunt dependencies manually.

    npm install time-grunt
    npm install load-grunt-config
    

    and then all modules listed here:

    enter image description here

    Note: you can install all of the dependencies in the photo above in one go with npm install.

    Finally I ran the grunt command and it worked!

提交回复
热议问题