We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1afc059 commit 146ecb5Copy full SHA for 146ecb5
README.md
@@ -1,8 +1,12 @@
1
# npm-preinstall-bug
2
From node 15.0.0 npm install command executes preinstall script AFTER installing dependencies.
3
+
4
to reproduce just clone this repo and run `npm install`
5
6
the expected result is `preinstall` script in `package.json` to be executed BEFORE dependencies installation.
7
8
the reality is - `preinstall` script will be executed AFTER dependencies installation.
9
10
how can you check this - after executing `npm install` you will see that `node_modules` directory was deleted by `preinstall` script.
11
12
Note: mongodb is just an example dependencies. you can try with any other npm package as dependency.
0 commit comments