How was the rejection of a breakpoint code on npm reversed?

I read about the fiasco at the finish at the npm finish, but I'm somewhat confused about how this happened. I think I misunderstand how npm works. If the left-pad developer did not publish the package, I assume that npm install left-padit will no longer work. However, for users who have already installed it, will there still be node_modules in the folder? Shouldn't the developers, say Babel, uninstall and reinstall the left pane for npm to understand that the package has disappeared? Something is clearly missing me, but I'm not sure what.

+4
source share
3 answers

When I run npm install babel, the left pane is not linked in babel, but rather expressed as a dependency in the package.json file. So npm should then find find-pad and load it as well. Therefore, if you are first installing the left panel or something using the left panel, you will not be able to. Although this means that you are safe if it already exists in your local directory, the project will not be able to build correctly once it is created somewhere else. For example, a CI server that performs a clean build from scratch for each new set of changes will not be able to build any project that will use the left pane. Or, if you are testing a project for the first time or deploying it to a new server, you cannot build it.

, . , . , , , , Babel , . , node - .

, , , .

+6

@, .

, , , Babel, .

, .

, , , ... , , , , , develloper, , .

+1

npm A blog article on this should answer most of your questions.

-1
source

Source: https://habr.com/ru/post/1653053/


All Articles