gpt4 book ai didi

javascript - gulp version.match -> 无法读取属性 "match"

转载 作者:搜寻专家 更新时间:2023-10-31 08:13:20 28 4
gpt4 key购买 nike

好吧,我是 gulp 和 sass 的新手,我正在努力让它发挥作用。我正确安装了所有东西,但我收到了这个愚蠢的错误。有解决办法吗?

PS C:\Users\Bojan Kolano\Desktop\Fax i projekti\Portfolio\Product Landing 
Page Project> gulp sass:watch
C:\Users\Bojan Kolano\AppData\Roaming\npm\node_modules\gulp-
cli\node_modules\sver-compat\sver.js:19
var semver = version.match(semverRegEx);
^

TypeError: Cannot read property 'match' of undefined
at new Semver (C:\Users\Bojan Kolano\AppData\Roaming\npm\node_modules\gulp- cli\node_modules\sver-compat\sver.js:19:24)
at Function.match (C:\Users\Bojan Kolano\AppData\Roaming\npm\node_modules\gulp-cli\node_modules\sver-compat\sver.js:374:15)
at matches (C:\Users\Bojan Kolano\AppData\Roaming\npm\node_modules\gulp-cli\node_modules\semver-greatest-satisfied-range\index.js:9:24)
at Array.filter (<anonymous>)
at findRange (C:\Users\Bojan Kolano\AppData\Roaming\npm\node_modules\gulp-cli\node_modules\semver-greatest-satisfied-range\index.js:12:28)
at Liftoff.handleArguments (C:\Users\Bojan Kolano\AppData\Roaming\npm\node_modules\gulp-cli\index.js:166:15)
at Liftoff.execute (C:\Users\Bojan Kolano\AppData\Roaming\npm\node_modules\gulp-cli\node_modules\liftoff\index.js:203:12)
at module.exports (C:\Users\Bojan Kolano\AppData\Roaming\npm\node_modules\gulp-cli\node_modules\flagged-respawn\index.js:51:3)
at Liftoff.<anonymous> (C:\Users\Bojan Kolano\AppData\Roaming\npm\node_modules\gulp-cli\node_modules\liftoff\index.js:195:5)
at C:\Users\Bojan Kolano\AppData\Roaming\npm\node_modules\gulp-cli\node_modules\liftoff\index.js:165:9
PS C:\Users\Bojan Kolano\Desktop\Fax i projekti\Portfolio\Product Landing
Page Project>

最佳答案

删除 package-lock.json 和 node_modules 文件夹并重新安装所有模块!应该工作 :)

关于javascript - gulp version.match -> 无法读取属性 "match",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51098519/

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