安装Node.js并继续安装gulp(复制必要的文件)在命令行上运行以下命令:
C:\Open\OSPanel\domains\Compulink>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)
但是当我输入命令gulp
时C:\Open\OSPanel\domains\Compulink>npm install gulp-sass --save-dev
npm WARN opencart-project@1.0.0 No repository field.
npm ERR! path C:\Open\OSPanel\domains\Compulink\node_modules\npm\node_modules\dezalgo
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename 'C:\Open\OSPanel\domains\Compulink\node_modules\npm\node_modules\dezalgo' -> 'C:\Open\OSPanel\domains\Compulink\node_modules\npm\node_modules\.dezalgo.DELETE'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\User\AppData\Roaming\npm-cache\_logs\2018-01-11T14_14_39_229Z-debug.log
我尝试解决有关此命令的问题
data.on('end', () => sftp.end())
但新错误是 文件dezalgo
答案 0 :(得分:1)
通过帮助命令序列解决了问题。首先,我清理缓存
npm clean cache
再开始
1)npm -v
2)npm i npm check updates g
3)npm i npm check updates
4)npm i -g gulp
5)npm install gulp-sass --save-dev
dezalgo没有删除并设置gulp-sass模块完成且没有错误