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

前端 未结 9 1316
臣服心动
臣服心动 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:27

    To answer this, first we need to understand that the error is caused because it is being executed by Windows Script Host.

    Now, run the code from your cmd promt with the following syntax:

    >node .js
    

    this will allow the Node.js application to open through V8 JavaScript engine(Google's).

    P.S: Please reply back if this has helped in resolving your issue else post the problem you are facing after trying this.

提交回复
热议问题