Errors in building zepto

when I try to build zepto, I get the following error:

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) 

not sure what is going on ... I installed the js shell, but this did not eliminate the error ...

+4
source share
2 answers

Run npm install . So that...

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

From https://github.com/madrobby/zepto#building

I ran into the same problem ...

Good luck Rob.

+3
source

If you want to create your own package, open the "make" file in the root directory of zepto and find line 42. Then you will see:

 modules = (env['MODULES'] || 'zepto event ajax form ie touch').split(' ') 

Change the package, separated by a space, after saving. Run

 npm run-script dist 

In the previous case, you had to install all the packages on which it depended.

0
source

Source: https://habr.com/ru/post/1469391/


All Articles