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

扶醉桌前 提交于 2019-12-01 17:42:06
akinjide

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!