1. Running gulp reports an error Cannot find module ‘gulp-sass’
module.js:339throw err;
Error: Cannot find module ‘gulp-sass’
at Function.Module._resolveFilename (module.js:337:15) at Function.Module._load (module.js:287:25) at Module.require (module.js:366:17) at require (module.js:385:17) at Object.<anonymous> (/Applications/XAMPP/xamppfiles/htdocs/flyscoot.com/gulpfile.js:2:12) at Module._compile (module.js:435:26) at Object.Module._extensions..js (module.js:442:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:311:12) at Module.require (module.js:366:17)
Solution:
1.npm update
2.npm install gulp-sass --save-dev
in your root folder
2. if it report error: gulp[12560]: c:\ws\src\node_contextify.cc:635: Assertion `args[1]->IsString()’ failed.
Installing the node.js native javascript module natives
Solution
npm install natives
—————gulp————-
//Global gulp
npm install gulp -g
// install the specified module in the project via package.json
npm install
start: gulp watch
Similar Posts:
- How to Solve ReferenceError: internalBinding is not defined
- GulpThe following tasks did not complete [How to Solve]
- NPM Install gulp-sass error: checking for Python executable “python2” in the PATH
- gulp Cannot read property ‘apply’ of undefined
- How to Solve Error: ENOENT: no such file or directory, scandir ‘..\node_modules\node-sass\vendor’
- Gulp Serve Error: gulp.ps1 [How to Solve]
- Node Sass could not find a binding for your current environment: Linux 64-bit with Node.js 7.x
- When installing gulp, you are always prompted that you are missing modules (cannot find module ‘gulp load plugins’)
- Solution to the problem of bash: gulp: command not found after installing gulp in Windows system
- Module build failed: Error: Cannot find module ‘node-sass’