Gulp run fails on windows | Error Message : Microsoft JScript compilation error, Invalid character

前端 未结 1 1377
生来不讨喜
生来不讨喜 2021-01-18 04:07

I installed Node.js on my windows 7 local machine as this link says :
install-node-js-npm-windows

After that i installed Gulp.js

1条回答
  •  [愿得一人]
    2021-01-18 04:29

    You need to run "node node_modules\gulp\bin\gulp.js install", just add "node" command in front of it and also refer to the link below for more

    Error running gulp on Windows 10

    I can't comment but did you run "npm install" after forking the repository, to install package.json "dependencies, dev-dependencies"?

    Gulp need to be installed Globally and also in your current working directory.

    Run the code below to installed Gulp globally, and the other to install the repository dependencies.

    npm install -g gulp
    npm install
    

    This answer is correct, But what was the problem in my side?
    I shouldn't add this path :

    C:\Users\Majid\AppData\Roaming\npm\node_modules\gulp\bin

    To environment variable area.

    I went to the root folder in cmd & reinstalled gulp globally and re ran npm install & finally gulp watch worked very well.

    0 讨论(0)
提交回复
热议问题