Tech Learning blog 20160711
(總是喜歡標記日子)
在用MEAN STACK, template from Wrapbootstrap, 剛剛我才發現自己在用別人付錢買給我修改的template,但為什麼還是這麼不好用! 若果我是一個newbie 打算買個template 就一買永逸的話,必定有被騙的感覺。
Problem one:
Using Dropzone.js, trying to copy the src files from a html ver template to my current MEAN template, I have found a command named bower install dropzone. Okay it will find the public\lib to create a folder named dropzone and put everything inside. However I have got an error message that is the gruntfile missing! Argh, well I then tried another command npm install dropzone, okay, a gruntfile.coffee is here! Then my grunt error: default is missing, okay stackoverflow saved me, I missed a comma in the default.js file!T_T
Problme two:
an error message in the console after the webpage is loaded. refused to execute script because it is mime type... which means linking to github = = alright
Finally got it fixed after half an hour- problem is that npm install will always put the installed files into node_modules folder, however node_modules folder will only help the express to work(correct me if not right), I will have to move the dropzone folder from node_modules folder back to public\lib folder! Yay it works now!
0 comments: