How to prevent nested node_modules inside node_modules

There are upside of having less nested folders and downside having more folders in node_modules folder directly and version control problems. Use correct npm version Correct yarn and npm (ie: npm v3) should not have such structure issue. It should always flatten the whole structure where possible and only have nested node_modules if the versions … Read more

Module not found: Error: Can’t resolve ‘@angular/animations’

In app.module add this: import { BrowserAnimationsModule } from ‘@angular/platform-browser/animations’; And lather in the module add it to imports: imports: [BrowserAnimationsModule] And remove the @angular/animations import statement. Maybe by applying npm install you updated your Angular version from v.2 to v.4. UPDATE: or just add this to your package.json (Choose the version you need): “dependencies”: … Read more

npm install: when to use –no-bin-links?

One scenario that I can think of is working with a virtual machine (i.e. vagrant w/ virtual box or VMware) on windows host. You can’t translate symlinks to a synchronized folder on Windows share, so you will need this option to go around it. Use it for any filesystem that doesn’t support symbolic links.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)