Error code: 800A1391 Source: Microsoft JScript runtime error Running Grunt - Module is undefined

前端 未结 9 1298
臣服心动
臣服心动 2021-01-03 22:21

New Grunt user here who is using a lot of new tools (npm nodejs) today.

I\'ve got Grunt \"installed\" and have been able to create a grunt.js file using the init tas

9条回答
  •  时光说笑
    2021-01-03 22:45

    it seems that in the latest versions of the grunt modules, you would have to do the following to have it work under windows:

    remove any globally installed grunt

    npm uninstall -g grunt
    

    install grunt-cli globally

    npm install -g grunt-cli
    

    install grunt locally into your project

    npm install grunt
    

    installing grunt (v0.4.x) globally does not seem to create the necessary grunt.cmd anymore. it seems that the recommendation is now to have grunt installed locally to be able to use version-specific Gruntfiles

提交回复
热议问题