- Update the apt package index:
sudo apt-get update
<!DOCTYPE html> | |
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<style> | |
body { | |
background: repeat url('data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/7QCIUGhvdG9zaG9wIDMuMAA4QklNBAQAAAAAAGscAVoAAxslRxwCAAACAAAcAnQAV8KpIENoYWV5b3VuZ1dpbGxOZXZlckNoYWVvbGQgLSBodHRwOi8vd3d3LnJlZGJ1YmJsZS5jb20vcGVvcGxlL0NoYWV5b3VuZ1dpbGxOZXZlckNoYWVvbAD/4gxYSUNDX1BST0ZJTEUAAQEAAAxITGlubwIQAABtbnRyUkdCIFhZWiAHzgACAAkABgAxAABhY3NwTVNGVAAAAABJRUMgc1JHQgAAAAAAAAAAAAAAAAAA9tYAAQAAAADTLUhQICAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABFjcHJ0AAABUAAAADNkZXNjAAABhAAAAGx3dHB0AAAB8AAAABRia3B0AAACBAAAABRyWFlaAAACGAAAABRnWFlaAAACLAAAABRiWFlaAAACQAAAABRkbW5kAAACVAAAAHBkbWRkAAACxAAAAIh2dWVkAAADTAAAAIZ2aWV3AAAD1AAAACRsdW1pAAAD+AAAABRtZWFzAAAEDAAAACR0ZWNoAAAEMAAAAAxyVFJDAAAEPAAACAxnVFJDAAAEPAAACAxiVFJDAAAEPAAACAx0ZXh0AAAAAENvcHlyaWdodCAoYykgMTk5OCBIZXdsZXR0LVBhY2thcmQgQ29tcGFueQAAZGVzYwAAAAAAAAASc1JHQiBJRUM2MTk2Ni0yLjEAAAAAAAAAAAAAABJzUkdCIElFQzYxOTY2LTIuMQAAAAAAAA |
{ | |
"editor.tabSize": 2, | |
"editor.fontSize": 15, | |
"editor.fontFamily": "Dank Mono, Monaco, 'Courier New', monospace", | |
"editor.lineHeight": 26, | |
"editor.fontLigatures": true, | |
"editor.tabCompletion": true, | |
"editor.formatOnSave": true, | |
"explorer.decorations.badges": false, | |
"editor.multiCursorModifier": "ctrlCmd", |
Installing node through Homebrew can cause problems with npm for globally installed packages. To fix it quickly, use the solution below. An explanation is also included at the end of this document.
This solution fixes the error caused by trying to run npm update npm -g
. Once you're finished, you also won't need to use sudo
to install npm modules globally.
Before you start, make a note of any globally installed npm packages. These instructions will have you remove all of those packages. After you're finished you'll need to re-install them.
{ | |
"editor.tabSize": 2, | |
"editor.fontSize": 15, | |
"editor.fontFamily": "Operator Mono, Monaco, 'Courier New', monospace", | |
"editor.lineHeight": 24, | |
"editor.fontLigatures": true, | |
"editor.tabCompletion": true, | |
"editor.formatOnSave": true, | |
"explorer.decorations.badges": false, | |
"editor.multiCursorModifier": "ctrlCmd", |
var vue2leafletdraw = | |
/******/ (function(modules) { // webpackBootstrap | |
/******/ // The module cache | |
/******/ var installedModules = {}; | |
/******/ | |
/******/ // The require function | |
/******/ function __webpack_require__(moduleId) { | |
/******/ | |
/******/ // Check if module is in cache | |
/******/ if(installedModules[moduleId]) { |
var vue2leafletdraw = | |
/******/ (function(modules) { // webpackBootstrap | |
/******/ // The module cache | |
/******/ var installedModules = {}; | |
/******/ | |
/******/ // The require function | |
/******/ function __webpack_require__(moduleId) { | |
/******/ | |
/******/ // Check if module is in cache | |
/******/ if(installedModules[moduleId]) { |
{ | |
"editor.tabSize": 2, | |
"editor.fontSize": 15, | |
"editor.fontFamily": "Operator Mono, Monaco, 'Courier New', monospace", | |
"editor.lineHeight": 24, | |
"editor.fontLigatures": true, | |
"editor.tabCompletion": true, | |
"editor.formatOnSave": true, | |
"explorer.decorations.badges": false, | |
"editor.multiCursorModifier": "ctrlCmd", |
{ | |
"editor.tabSize": 2, | |
"editor.fontSize": 15, | |
"editor.fontFamily": "Operator Mono, Monaco, 'Courier New', monospace", | |
"editor.lineHeight": 24, | |
"editor.fontLigatures": true, | |
"editor.tabCompletion": true, | |
"editor.formatOnSave": true, | |
"explorer.decorations.badges": false, | |
"editor.multiCursorModifier": "ctrlCmd", |