gpt4 book ai didi

zepto - 构建zepto时的错误

转载 作者:行者123 更新时间:2023-12-01 02:27:10 27 4
gpt4 key购买 nike

当我尝试构建 zepto 时,出现以下错误:

MODULES="zepto event polyfill detect fx fx_methods ajax form selector touch gesture" ./make dist
Error: Cannot find module 'shelljs/make'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:362:17)
at require (module.js:378:17)
at Object.<anonymous> (/Users/kevin/etcgit/zepto/make:4:3)
at Object.<anonymous> (/Users/kevin/etcgit/zepto/make:153:4)
at Module._compile (module.js:449:26)
at Object.exports.run (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/coffee-script.js:124:25)
at compileScript (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/command.js:166:29)
at fs.stat.notSources.(anonymous function) (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/command.js:141:18)
at fs.readFile (fs.js:176:14)
at Object.oncomplete (fs.js:297:15)

不知道发生了什么......我确实安装了shell js,但并没有摆脱错误......

最佳答案

确保您运行 npm install第一的。所以...

cd src/js/libs/zepto
npm install
MODULES="zepto event polyfill detect fx fx_methods ajax form selector touch gesture" ./make dist

来自 https://github.com/madrobby/zepto#building

我自己也遇到了同样的问题...

祝你好运,
抢。

关于zepto - 构建zepto时的错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15422911/

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