Skip to content
This repository was archived by the owner on Apr 22, 2026. It is now read-only.
This repository was archived by the owner on Apr 22, 2026. It is now read-only.

Text file busy when running on AWS Amplify #30

@lanesawyer

Description

@lanesawyer

So I'm not sure if this is an Amplify issue or only-allow problem, so you might tell me to go elsewhere!

We are using only-allow for an internal package we maintain. In the consuming repository (so not the actual repository where only-allow is used), the build sometimes fails on AWS Amplify because only-allow is running into a text file busy problem. This happens maybe once every 6 or 7 builds.

The error output:

npm ERR! command failed
npm ERR! command sh -c npx only-allow pnpm
npm ERR! npm WARN exec The following package was not found and will be installed: only-allow@1.2.1
npm ERR! sh: line 1: /root/.npm/_npx/0b83cd9ca5e1325c/node_modules/.bin/only-allow: Text file busy

The annoying part is that we don't care about using only-allow at all when consuming the package, but I can't figure out how to run off the preinstall for consumers of the package that has only-allow in it, so if there is any guidance there (did I overlook it in the docs?), that would also solve my problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions