I’ve experience weird moment today when trying to run my friend’s gulp script which call node-sass, it throw this error
Error: ENOENT: no such file or directory, scandir '**/node_modules/node-sass/vendor'
I call it weird because normally it has ‘vendor’ folder.
After Googling, visiting some stackoverflow pages, the solution is simple: just invoke these two commands
npm rebuild node-sass
then you’re good to go 🙂
I got this error when trying to install npm-check-updates with npm 5.6.0 on node 8.1.1
The solution is simple, just invoke
npm cache clean --force
try install npm-check-updates again, voila! it works
recently, I want to pass this variable to the view
passedVars.metaOgUrl = '<meta property="og:url" content="' + originalUrl + '">';
and use the usual way of rendering variable in pug
but it render the tag twice, a simple googling then found the answer, use != character as prefix
it’s rendered normal now