Tips and tricks

Web Development - How to clean install node_modules

run this in Terminal

rm -rf node_modules/ && rm package-lock.json && npm cache clean --force && npm i --legacy-peer-deps

you are using dropbox, and you do not want the files to sync

rm -rf node_modules/ && mkdir node_modules/ &&  xattr -w com.dropbox.ignored 1 node_modules/ && rm package-lock.json && npm cache clean --force && npm i --legacy-peer-deps

Leave a comment

Your email address will not be published

{"type":"main_options","images_arr":"'#ffffff'","bg_slideshow_time":"0","site_url":"https:\/\/digitalzoomstudio.net","theme_url":"https:\/\/digitalzoomstudio.net\/wp-content\/themes\/qucreative\/","is_customize_preview":"off","gallery_w_thumbs_autoplay_videos":"off","base_url":"https:\/\/digitalzoomstudio.net"}