Tag: javascript

12 Sep, 17

Firing Vue.JS Events into Outer Space or How To Make My Legacy JS Code React on Vue JS Events

Sometimes (or even often) you'll want to emit your Vue app events outside of the scope of the app. For example, it may be useful when you want some legacy jQuery script to be notified about event happened in Vue app.

I found the following pattern to be the easiest solution: it's ...

Read now
30 Apr, 15

Install npm packages without sudo

If you run the following command to install npm package:

1
  1. npm install <package_name>

and get an access error, you might be tempted to run this command with sudo and it'll work, but it's not a right way for sure. Npm modules should be installed without sudo. To fix the ...

Read now