When moving from one version of node to another via nvm, you can copy across any global dependencies by installing like this:
nvm install 16 --reinstall-packages-from=current| [ | |
| { | |
| "enabled": true, | |
| "updateUrl": null, | |
| "md5Url": null, | |
| "url": null, | |
| "originalMd5": null, | |
| "installDate": 1579607673481, | |
| "name": "github.com", | |
| "sections": [ |
| { | |
| // This file is required for VSCode to understand webpack aliases | |
| "module": "es6", | |
| "moduleResolution": "node", | |
| "compilerOptions": { | |
| "resolveJsonModule": true, | |
| "jsx": "preserve", | |
| "module": "commonjs", | |
| "target": "es5", | |
| "sourceMap": true, |
| const requireModule = require.context('.', false, /^\.\/Cy.+\.js$/) | |
| const modules = requireModule.keys().reduce((modules, fileName) => { | |
| const moduleName = fileName.replace(/(\.\/|\.js)/g, '') | |
| return { ...modules, [moduleName]: requireModule(fileName).default } | |
| }, {}) | |
| export const components = Object.keys(modules) | |
| export default modules |
node inspect path/to/file.js
| git config --global core.excludesfile .local.gitignore | |
| # Then add .local.gitignore to the file, so it ignores itself | |
| # whilst also ignoring everything else you put in the file |
| lets( | |
| birthMonth, month(prop("Birthday")), | |
| birthDay, date(prop("Birthday")), | |
| ifs( | |
| or((birthMonth == 3 AND birthDay >= 21), (birthMonth == 4 AND birthDay <= 19)), "♈️ Aries", | |
| or((birthMonth == 4 AND birthDay >= 20), (birthMonth == 5 AND birthDay <= 20)), "♉️ Taurus", | |
| or((birthMonth == 5 AND birthDay >= 21), (birthMonth == 6 AND birthDay <= 20)), "♊️ Gemini", | |
| or((birthMonth == 6 AND birthDay >= 21), (birthMonth == 7 AND birthDay <= 22)), "♋️ Cancer", | |
| or((birthMonth == 7 AND birthDay >= 23), (birthMonth == 8 AND birthDay <= 22)), "♌️ Leo", | |
| or((birthMonth == 8 AND birthDay >= 23), (birthMonth == 9 AND birthDay <= 22)), "♍️ Virgo", |