简体   繁体   中英

Error: Cannot find module 'hbsfy'

Issue with Script

Hello i will install https://github.com/cloverstudio/Spika/tree/master/web/src/server

I become on :

gulp build-dist

Error: Cannot find module 'hbsfy'

I Hope this is all what i need for installing this the Tutorial is not the best from the website :)

How can i fix the issue with this? What for Module is needet?

I faced same and more issues too. I'm trying Spika on Ubuntu 16.04 Server. Before $ npm install it was necessary $ sudo apt-get install nodejs-legacy

Answering to your questiong, first of all just on web directory clean all npm

rm -rf node_modules/

Now we can run the following commands:

npm install
npm install gulp-util
npm install minimatch
npm install graceful-fs
npm install gulp -g
npm install hbsfy
npm install handlebars

This is not enough because jsdoc is not as expected. All the files and directories inside node_modules/jsdoc/lib/jsdoc should be inside node_modules/jsdoc so just create a symbolic link for each of them

eg

cd node_modules/jsdoc
ln -sf lib/jsdoc/opts opts
ln -sf lib/jsdoc/util util
etc... etc...

Now we can finally run

gulp build-dist

Hope you find it usefull, regards ;)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM