gpt4 book ai didi

node.js - 找不到 dezalgo 文件并且无法运行 gulp-sass

转载 作者:太空宇宙 更新时间:2023-11-04 00:13:41 25 4
gpt4 key购买 nike

安装了 Node.js 并继续安装 gulp(复制了必要的文件)在命令行上运行以下命令:

npm -v
npm -i
npm i
npm i npm-check-updates -g
ncu -u

All dependencies match the latest package versions :)

但是当我输入命令 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)

我尝试解决这个命令的问题

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

但是新的错误是。`文件解压

最佳答案

通过命令序列的帮助解决了该问题。首先我清理缓存

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 模块,没有错误完成

关于node.js - 找不到 dezalgo 文件并且无法运行 gulp-sass,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48211118/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com