Depoly error about `/vercel/path0/node_modules/ ~~~~ dose not exist`

get a error about

/vercel/path0/node_modules/transformers/node_modules/uglify-js/tools/exports.js does not exist.

and i add this code
{ “postinstall”: “npm install uglify-js”}
in package.json but same error.

how can i fix this?

Hi, @dev-cmkim! Welcome to the Community :smile:

Manually installing packages in a postinstall script is generally not recommended. Could you try:

  1. Removing the custom postinstall script you added to your package.json.
  2. Clearing your npm cache and node_modules, then reinstall your dependencies:
npm cache clean --force
rm -rf node_modules
rm package-lock.json
npm install
  1. If the issue persists, try explicitly installing uglify-js as a dev dependency:
npm install --save-dev uglify-js

Let us know how you get on!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.