Skip to content

Run npm cache clean before running npm install#1297

Closed
juandazapata wants to merge 1 commit intophoenixframework:masterfrom
juandazapata:clean-npm-cache-on-install
Closed

Run npm cache clean before running npm install#1297
juandazapata wants to merge 1 commit intophoenixframework:masterfrom
juandazapata:clean-npm-cache-on-install

Conversation

@juandazapata
Copy link
Copy Markdown

Sometimes, npm will fail to install some packages because its cache
gets in some weird state. Running npm cache clean ensures that the
installation is done with fresh packages instead of the cached ones.

Sometimes, `npm` will fail to install some packages because its cache
gets in some weird state. Running `npm cache clean` ensures that the
installation is done with fresh packages instead of the cached ones.
@josevalim
Copy link
Copy Markdown
Member

Thank you @juandazapata but I would rather not do this. If installation fail, they still get the error on the next command or when they run the server. I don't think we should try to work around npm bugs. :)

@juandazapata
Copy link
Copy Markdown
Author

Fair enough! Thanks for replying @josevalim

@juandazapata juandazapata deleted the clean-npm-cache-on-install branch October 17, 2015 03:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants