Open mulderp opened 11 years ago
Hi, sorry for the late response. Right now, the gem just uses node's require
to consume Bower, which uses global bower installation. The ultimate goal is to bundle Bower / don't require a global installation, but for now, installing it via npm should do the trick:
npm install -g bower
Maybe u guys figure it out.
In CMD: npm install -g xxx
Then we get the global install address by 'npm root -g', such as 'C:\Users???\AppData\Roaming\npm\node_modules'
add parameter cwd=r'C:\Users???\AppData\Roaming\npm\node_modules' in complie function. eg: "Obfs_Js=execjs.compile(js, cwd=r'C:\Users\???\AppData\Roaming\npm\node_modules')" ,js is the javascript code.
I solved the problem in that way.
When I try to load bower in an IRB shell, I get:
Any idea what I can try?