字节笔记本字节笔记本

How To Solve Error [ERR_PACKAGE_PATH_NOT_EXPORTED]

2022-05-12

To resolve the ERR_PACKAGE_PATH_NOT_EXPORTED error, downgrade Node.js to the LTS version (currently v14.18.1) by uninstalling the current version and installing the LTS version using nvm.

Solution Use LTS version of Nodejs

Just Downgrade nodejs to LTS version. So You just need to Use node.js v14.18.1 and remove the latest version just use the stable version v14.18.1 ( For Now ).

To uninstall old version of node use This command.

nvm uninstall <Your version>

In My Case I want to uninstall Node latest version of 17.0.1 so That I will run this command.

nvm uninstall v17.0.1

Then use the stable version LTS which is v14.18.1 Just run this command.

nvm install --lts

Now, Your error must be solved.