Where does npm install -g install packages?
On OSX, running the npm global install command installs the packages at If you leave out the global flag (-g), the packages get installed in the current directory you are in.
On OSX, running the npm global install command installs the packages at If you leave out the global flag (-g), the packages get installed in the current directory you are in.
Stack overflow has a great answer to this question that can be found at: https://stackoverflow.com/questions/21719562/how-to-use-javascript-source-maps-map-files Please read the original source for more info as it is copied here for convenience only. The .map files are for js and css (and now ts too) files that have been minified. They are called SourceMaps. When you minify a file, like the angular.js file, it takes… Read More »
In your Git repository, run the command to “verify” your remote repository definition. This should show something like To add another “origin”, run the command For example: Note that you have to use a unique name. Now run remote -v again To remove a remote, run Why would you want to do this? You would… Read More »
The Microsoft AutoUpdate on Mac OSX is so annoying, and there is no quick way to remove it or disable it. The fact that this option is not available in the menu is ridiculous. To actually remove it, you’ll have to navigate to the /Library/Application Support/Microsoft/MAU2.0 folder and delete the app from there.
To transfer files to AWS EC2 instance, one can use secure copy. The format can be seen below. Here is an example: This will upload the file to the user’s home directory which is actually “home/ubuntu”
If you are wondering why the RCD trips when you accidentally touch the neutral and earth together even though the circuit breaker is off, here is a neat video to explain why. Basically, the other circuits will still be live and when the neutral and earth conductors are touched, it gives the current returning on… Read More »
Here is a link to SafeStacks previous seminars in case you missed the live event: https://academy.safestack.io/seminars/ Some of the info there is very useful!
In terminal, we can use the echo keyword to display text like this: and you will get the following: You can also run a command like: which produces the following: If you want to echo and have a command execute and then the results displayed on the same line you have to do this: The… Read More »
If you are getting the above error, then the chances are that you have included createWebHistory in your vue router definition. You probably have: When you should have
Are you getting the error “export ‘createWebHistory’ was not found in ‘vue-router’ or “export ‘createRouter’ was not found in ‘vue-router’? A quick search on the Interweb will show that you have run instead of npm install vue-router will install the latest “tagged” version which is 3.5.1. Next is a tag which installs v4.0.4. Alternatively you… Read More »