fix TypeError: fsevents is not a function
rm -rf node_modules
rm -f yarn.lock
yarn
npm cache verifyfix TypeError: fsevents is not a function
rm -rf node_modules
rm -f yarn.lock
yarn
npm cache verify| // Place your settings in this file to overwrite the default settings | |
| { | |
| // Controls the font family. | |
| "editor.fontFamily": "Operator Mono", | |
| // Controls the font size in pixels. | |
| "editor.fontSize": 24, | |
| "editor.formatOnPaste": false, | |
| "editor.multiCursorModifier": "ctrlCmd", | |
| "editor.snippetSuggestions": "top", | |
| "emmet.includeLanguages": { |
| (async () => { | |
| const response = await fetch('https://api.spotify.com/v1/tracks/6JEK0CvvjDjjMUBFoXShNZ'); | |
| const { name } = await response.json(); | |
| console.log(name); | |
| })(); |
| let swapHeaderImage = (() => { | |
| const hero = document.querySelector('.hero'); | |
| let current = 1; | |
| let next = 2; | |
| function init() { | |
| hero.classList.remove(Array.from(hero.classList).pop()); | |
| hero.classList.add(`artist-banner-${current}`); | |
| } |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Spotify Artist Search</title> | |
| <link rel="stylesheet" type="text/css" href="https://developer.spotify.com/web-api/static/css/cached.css"> | |
| <style> | |
| body { | |
| padding: 20px; | |
| } |
| <snippet> | |
| <content><![CDATA[ | |
| <% $1 %> | |
| ]]></content> | |
| <tabTrigger>%</tabTrigger> | |
| <description>ERB Tag</description> | |
| <scope>source.erb</scope> | |
| </snippet> |
| // Alternative JavaScript Syntax | |
| Person = :(name, address) { @name!, @address! } | |
| Person::inspect = :{ <: "{@name} lives at {@address}" } | |
| tj := Person('TJ', '314 Bessborough ave') | |
| bob := Person('Bob', 'Some place') | |
| [tj, bob].each(:(person){ print(person.inspect()) }) |