Home > database >  Unidentified package installing in my node_modules
Unidentified package installing in my node_modules

Time:12-17

There is a package called [email protected] that is continuously installing in my node_modules folder and I can't find the way to track it to know where it comes from. This package is deprecated already and it is throwing errors when I try to dockerize my nextjs project. The error is telling my that this package does not have binary for my architecture arm64 (I have a M1 MacOS):

102.1 [4/4] Building fresh packages...
104.7 error /usr/src/app/node_modules/phantomjs-prebuilt: Command failed.
104.7 Exit code: 1
104.7 Command: node install.js
104.7 Arguments: 
104.7 Directory: /usr/src/app/node_modules/phantomjs-prebuilt
104.7 Output:
104.7 PhantomJS not found on PATH
104.7 Unexpected platform or architecture: linux/arm64
104.7 It seems there is no binary available for your platform/architecture
104.7 Try to install PhantomJS globally

But that does not bother me, I just want to remove it or track the dependecy which is installing it. Is there a way to do that? I already tried yarn list but it only shows the dependencies of this packages and not the one which is installing it:

├─ [email protected]
│  ├─ [email protected]
│  └─ [email protected]
✨  Done in 0.39s.

Any help is appreciated. Thank You!

CodePudding user response:

If you are using yarn try:

yarn why phantomjs-prebuilt

Documentation

  • Related