tailwindcss: yarn install throw error because `oxide-node-api-shim` a non-existing file

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"'.

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 50
  • Comments: 22 (5 by maintainers)

Most upvoted comments

A new version has just been released (3.2.6)!

Try it with your favorite tool:

  • npm install tailwindcss@latest
  • pnpm add tailwindcss@insiders
  • yarn add tailwindcss@insiders

Let me know if more errors occur while installing.

@anarkrypto that’s not for development, that was intentionally and npm is fine with it. But yarn and pnpm are not happy about it.

I’m looking into this!

Really? I just want to run npx create-react-app --template typescript. It gives me that error. There is no information in the internet about this problem, and I dont need tailwindcss at all. But your bug affected common-use command at least for an hour. There is no way to run this command using another version of tailwindcss (for ex. 3.2.4 where this problem dont occur). Dont you want to test your releases before publishing to npm??

We’re aware of and acknowledge the problem folks, no need to reply with any “yep broken for me too” stuff. Yes it’s broken, we know 😅

New release will be out any minute but like any other package you can always install the last working version by specifying the version number:

npm install -D tailwindcss@3.2.4

A fix is coming just relax.

Same error, workaround similar to @IvandeWolf I’ve updated to npm v9.4.2 locally.

Workaround for newbies like me: pnpm install -D tailwindcss@3.2.4 then modify version in package.json to have the ^ operator: ..., "tailwindcss": "^3.2.4", ...

Edit: looks like updating to npm latest (9.4.2) will also fix the issue: npm install -g npm@latest

Here is the error: https://github.com/tailwindlabs/tailwindcss/blob/master/package-lock.stable.json#L12

A relative path for development was submitted in the production code @RobinMalfait

@adamwathan Is it possible to mark tailwindcss as an optional dependency of CRA? See facebook/create-react-app#12046. That way CRA doesn’t break in case of issues like this for users that don’t need tailwind with their CRA 😃 ?

Hey! Better to ask the CRA team about that, I don’t have any ability to make changes there.

@adamwathan Is it possible to mark tailwindcss as an optional dependency of CRA? See https://github.com/facebook/create-react-app/pull/12046. That way CRA doesn’t break in case of issues like this for users that don’t need tailwind with their CRA 😃 ?

+1 to this

error Package "" refers to a non-existing file '"/home/runner/work/.../oxide-node-api-shim"'.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Error: Process completed with exit code 1.