Nodejs – Error: ENOENT: no such file or directory, scandir ‘node_modules/node-sass/vendor’


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

nodejs node_modules/node-sass/scripts/install.js
npm rebuild node-sass

then you’re good to go 🙂

 

Pug render variable twice


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

#{metaOgUrl}

but it render the tag twice, a simple googling then found the answer, use != character as prefix

!=metaOgUrl

it’s rendered normal now

 

source:

https://stackoverflow.com/questions/23076881/jade-renders-my-html-twice

 

70 Javascript Libraries You Can Choose for Your Productivity


Here are 70 Javascript Libraries I’ve found from some articles and a bit googling

  • angularjs.org
  • backbonejs.org
  • emberjs.com
  • expressjs.com
  • meteor.com
  • derbyjs.com
  • socketstream.org
  • developer.yahoo.com/cocktails/mojito/‎
  • nombo.io
  • coke-js.org
  • sleekjs.com
  • actionherojs.com
  • frisbyjs.com
  • mcavage.github.io/node-restify
  • percolatorjs.com
  • strongloop.com/mobile-application-development/loopback/
  • spumko.github.io (hapi)
  • flatironjs.org
  • locomotivejs.org
  • compoundjs.com
  • geddyjs.org
  • sailsjs.org
  • threejs.org
  • raphaeljs.com
  • processingjs.org
  • d3js.org
  • kineticjs.com
  • createjs.com
  • handlebarsjs.com
  • mustache.github.io
  • jasmine.github.io
  • qunitjs.com
  • unitjs.com
  • knockoutjs.com
  • microscopejs.com
  • krakenjs.com
  • underscorejs.org
  • totaljs.com
  • spinejs.com
  • tupaijs.com
  • trintejs.com
  • getlavaca.com
  • mozart.io
  • agilityjs.com
  • puremvc.org
  • docpad.org
  • towerjs.org
  • agilityjs.com
  • hcanjs.com
  • sammyjs.org
  • snackjs.com
  • serenadejs.org
  • feathersjs.com
  • rappidjs.com
  • amplifyjs.com
  • blacksmith.jit.su
  • moot.it/riotjs/‎
  • github.com/robtweed/ewdGateway2
  • github.com/jnordberg/wintersmith
  • github.com/felixge/node-romulus
  • github.com/caolan/petrify
  • github.com/tshemsedinov/impress
  • github.com/airbnb/rendr
  • github.com/mklabs/backnode
  • hay.github.io/stapes/
  • britesnow.com/brite‎/
  • senchalabs.org/connect/
  • peter.michaux.ca/maria/‎
  • mochi.github.io/mochikit/
  • somajs.github.io/somajs/