-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CORRUPTS NODE_MODULES #27
Comments
Encountered this, too. Upon every new install, it most if not all installed modules (but keeps them in package.json). So after every npm intall some-moudle, I have to run npm install again. The preinstall script does not help as it only triggers before a plain 'install'. Why does this happen? |
to fix this, merge this: {
"scripts": {
"postinstall": "link-module-alias",
}
} into your package.json file ;) |
That does not work for me. I added both the "preinstall" and "postinstall" scripts as per the readme and I am still having the same issues as these other guys. E.g. any time I |
are you using {
"_moduleAliases": {
"~": "src",
"~public": "public"
},
} |
I am using P.S. I tried |
@Papooch did u try? can you please explain the exact steps to successfully use "link-module-alias"?! |
Every time I add a new package it removes some random module from node_modules and my app breaks.
Can't use this anymore for this reason. Pretty cool though when it works.
The text was updated successfully, but these errors were encountered: