yarn install throw error because `oxide-node-api-shim` a non-existing file
Problem
_Maintainer's note: This issue has been fixed in v3.2.6._ --- Tailwind: `v3.2.5` Node: `v19.6.0` Yarn: `v1.22.19` When trying to install new Tailwind version `3.2.5` using Yarn, I get that error: `error Package "" refers to a non-existing file '"/Users/akoraie/MyApp/assets/oxide-node-api-shim"'.`
Error Output
error: `error Package "" refers to a non-existing file '"/Users/akoraie/MyApp/assets/oxide-node-api-shim"'.`
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Upgrade Tailwind to v3.2.6 to Resolve Dependency Issue
The error occurs because the package `oxide-node-api-shim` is referenced in the project but does not exist in the specified path. This issue has been addressed in the Tailwind CSS version 3.2.6, which updates the dependencies and removes the reference to the non-existing file.
Awaiting Verification
Be the first to verify this fix
- 1
Update Tailwind CSS Version
Upgrade Tailwind CSS to the latest version (3.2.6) to resolve the dependency issue.
bashyarn add tailwindcss@3.2.6 - 2
Clear Yarn Cache
Clear the Yarn cache to ensure that any previous installations do not interfere with the new installation.
bashyarn cache clean - 3
Reinstall Node Modules
Remove the existing node_modules directory and reinstall the dependencies to ensure a clean setup.
bashrm -rf node_modules && yarn install - 4
Verify Installation
Check that Tailwind CSS is correctly installed and that there are no errors related to `oxide-node-api-shim`.
bashyarn list tailwindcss
Validation
Run `yarn install` again after following the steps. If the installation completes without errors and `tailwindcss@3.2.6` is listed in the output of `yarn list tailwindcss`, the fix has worked.
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep