R
R
Reborg2018-03-11 14:47:20
Node.js
Reborg, 2018-03-11 14:47:20

How to solve gulp startup issue?

gulp not starting

C:\Open server\OSPanel\domains\opencart.loc>gulp
module.js:557
    throw err;
    ^

Error: Cannot find module 'gulp-sass'
    at Function.Module._resolveFilename (module.js:555:15)
    at Function.Module._load (module.js:482:25)
    at Module.require (module.js:604:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (C:\Open\OSPanel\domains\Compulink\gulpfile.js:4:20)
    at Module._compile (module.js:660:30)
    at Object.Module._extensions..js (module.js:671:10)
    at Module.load (module.js:573:32)
    at tryModuleLoad (module.js:513:12)
    at Function.Module._load (module.js:505:3)

I found an article with exactly the same problem and an attempt to solve it
https://ru.stackoverflow.com/questions/769466
Maybe it will come in handy for someone.
The solution comes down to the following sequence of commands:
npm cache clean
npm i npm check updates g
npm i npm check updates
npm i -g gulp
npm install gulp-sass --save-dev

dezalgo In my case, the reinstallation does not find the package does not help 5aa5153b31d32879479377.jpeg
Tell me the steps to fix this problem, can anyone come across ???
These are the first steps of working with gulp and I can't even run it

Answer the question

In order to leave comments, you need to log in

4 answer(s)
G
game802, 2018-03-11
@game802

Judging by the error Error: Cannot find module 'gulp-sass', you do not have enough package to run gulp.
Try installing the required package with the following command: npm i gulp-sass --save-dev
And you are going somewhere very far to solve this problem.
1) Try adding node-sassto package.json, in devDependencies:
2) Completely delete the node_modules folder
3) Re-install dependencies from package.json with the commandnpm i

E
eQ1, 2018-03-11
@eQ1

Trynpm rebuild node-sass --force

D
Dima Polos, 2018-03-11
@dimovich85

Watch the video https://youtu.be/EtbZQ6qWuJ4

T
Tretlenz, 2018-03-11
@tretlenz

Try reinstalling browser-sync. Also, I don't remember what it was about, I commented the line tunnel:true

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question