TL;DR
yarn why contextify
- Remove/Update the result dependency from step 1. by modify
package.json
. npm install
Full scenario
Today I encounter an error when npm install
, the error look like this :
1 | error M:\Github\asing1001.github.io\node_modules\contextify: Command failed. |
This is caused by the package contextify
too old, to find out which package dependent on contextify
, I use yarn why contextify
in command prompt :
1 | M:\Github\asing1001.github.io> yarn why contextify |
Obviously it is refenrence by dependency hexo-migrator-blogger
, I update package.json
to remove this package and npm install
again, it is fixed :)