Error enotempty

node v10.16.3, with pnpm

Installing...

 WARN  Moving discord.js that was installed by a different package manager to "node_modules/.ignored

ERROR  ENOTEMPTY: directory not empty, rename '/rbd/pnpm-volume/a5584077-6f69-4bb7-83fa-871d59d414eb/node_modules/discord.js' -> '/rbd/pnpm-volume/a5584077-6f69-4bb7-83fa-871d59d414eb/node_modules/.ignored/discord.js'

I have this error, I’m trying to fix it by searching on google but without success.
Can you guys help me please?

node v10.15.3, with pnpm

Installing...

 WARN  discord.js@11.5.1 requires a peer of bufferutil@^4.0.0 but none was installed.

 WARN  discord.js@11.5.1 requires a peer of erlpack@discordapp/erlpack but none was installed.

 WARN  discord.js@11.5.1 requires a peer of libsodium-wrappers@^0.7.3 but none was installed.

 WARN  discord.js@11.5.1 requires a peer of node-opus@^0.2.7 but none was installed.

 WARN  discord.js@11.5.1 requires a peer of opusscript@^0.0.6 but none was installed.

 WARN  discord.js@11.5.1 requires a peer of sodium@^2.0.3 but none was installed.

 WARN  discord.js@11.5.1 requires a peer of @discordjs/uws@^10.149.0 but none was installed.

Packages: +62

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Resolving: total 62, reused 62, downloaded 0

Resolving: total 62, reused 62, downloaded 0, done

ERROR  ENOENT: no such file or directory, chmod '/rbd/pnpm-volume/a5584077-6f69-4bb7-83fa-871d59d414eb/node_modules/node/bin/node'

Like said here I done “enable-pnpm”, and I get the above error right now…

node v12.8.1, with pnpm

2:02 PM

Installing...

2:02 PM

 WARN  Moving discord.js that was installed by a different package manager to "node_modules/.ignored

2:02 PM

 WARN  Moving express that was installed by a different package manager to "node_modules/.ignored

2:02 PM

 WARN  Moving node that was installed by a different package manager to "node_modules/.ignored

2:02 PM

 WARN  Moving parse-ms that was installed by a different package manager to "node_modules/.ignored

2:02 PM

 WARN  Moving rnpm that was installed by a different package manager to "node_modules/.ignored

2:02 PMa minute ago

Resolving: total 19, reused 0, downloaded 0

2:02 PM

Resolving: total 36, reused 11, downloaded 0

2:02 PM

Resolving: total 57, reused 31, downloaded 4

2:02 PM

Resolving: total 66, reused 31, downloaded 9

2:02 PM

Resolving: total 70, reused 31, downloaded 16

2:02 PM

Resolving: total 75, reused 31, downloaded 21

2:02 PM

Resolving: total 93, reused 39, downloaded 32

2:02 PM

Resolving: total 107, reused 40, downloaded 43

2:02 PM

Resolving: total 129, reused 40, downloaded 62

2:02 PM

Resolving: total 147, reused 42, downloaded 79

2:02 PM

Resolving: total 170, reused 42, downloaded 97

2:02 PM

Resolving: total 192, reused 42, downloaded 128

2:02 PM

 WARN  discord.js@11.5.1 requires a peer of bufferutil@^4.0.0 but none was installed.

2:02 PM

 WARN  discord.js@11.5.1 requires a peer of erlpack@discordapp/erlpack but none was installed.

2:02 PM

 WARN  discord.js@11.5.1 requires a peer of libsodium-wrappers@^0.7.3 but none was installed.

2:02 PM

 WARN  discord.js@11.5.1 requires a peer of node-opus@^0.2.7 but none was installed.

2:02 PM

 WARN  discord.js@11.5.1 requires a peer of opusscript@^0.0.6 but none was installed.

2:02 PM

 WARN  discord.js@11.5.1 requires a peer of sodium@^2.0.3 but none was installed.

2:02 PM

 WARN  discord.js@11.5.1 requires a peer of @discordjs/uws@^10.149.0 but none was installed.

2:02 PM

Packages: +193

2:02 PM

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

2:02 PM

Relinking /rbd/pnpm-volume/a5584077-6f69-4bb7-83fa-871d59d414eb/node_modules/.registry.npmjs.org/discord.js/11.5.1/node_modules/discord.js from the store

2:02 PM

Relinking /rbd/pnpm-volume/a5584077-6f69-4bb7-83fa-871d59d414eb/node_modules/.registry.npmjs.org/long/4.0.0/node_modules/long from the store

2:02 PM

Relinking /rbd/pnpm-volume/a5584077-6f69-4bb7-83fa-871d59d414eb/node_modules/.registry.npmjs.org/prism-media/0.0.3/node_modules/prism-media from the store

2:02 PM

Relinking /rbd/pnpm-volume/a5584077-6f69-4bb7-83fa-871d59d414eb/node_modules/.registry.npmjs.org/snekfetch/3.6.4/node_modules/snekfetch from the store

2:02 PM

Relinking /rbd/pnpm-volume/a5584077-6f69-4bb7-83fa-871d59d414eb/node_modules/.registry.npmjs.org/tweetnacl/1.0.1/node_modules/tweetnacl from the store

2:02 PM

Relinking /rbd/pnpm-volume/a5584077-6f69-4bb7-83fa-871d59d414eb/node_modules/.registry.npmjs.org/ws/6.2.1/node_modules/ws from the store

2:02 PM

Relinking /rbd/pnpm-volume/a5584077-6f69-4bb7-83fa-871d59d414eb/node_modules/.registry.npmjs.org/async-limiter/1.0.1/node_modules/async-limiter from the store

2:02 PM

Relinking /rbd/pnpm-volume/a5584077-6f69-4bb7-83fa-871d59d414eb/node_modules/.registry.npmjs.org/accepts/1.3.7/node_modules/accepts from the store

2:02 PM

Relinking /rbd/pnpm-volume/a5584077-6f69-4bb7-83fa-871d59d414eb/node_modules/.registry.npmjs.org/mime-types/2.1.24/node_modules/mime-types from the store

2:02 PM

Relinking /rbd/pnpm-volume/a5584077-6f69-4bb7-83fa-871d59d414eb/node_modules/.registry.npmjs.org/mime-db/1.40.0/node_modules/mime-db from the store

2:02 PM

Relinking /rbd/pnpm-volume/a5584077-6f69-4bb7-83fa-871d59d414eb/node_modules/.registry.npmjs.org/negotiator/0.6.2/node_modules/negotiator from the store

2:02 PM

Relinking /rbd/pnpm-volume/a5584077-6f69-4bb7-83fa-871d59d414eb/node_modules/.registry.npmjs.org/array-flatten/1.1.1/node_modules/array-flatten from the store

2:02 PM

Relinking /rbd/pnpm-volume/a5584077-6f69-4bb7-83fa-871d59d414eb/node_modules/.registry.npmjs.org/content-type/1.0.4/node_modules/content-type from the store

2:02 PM

 WARN  EXDEV: cross-device link not permitted, link '/app/.pnpm-store/2/registry.npmjs.org/bytes/3.1.0/node_modules/bytes/package.json' -> '/rbd/pnpm-volume/a5584077-6f69-4bb7-83fa-871d59d414eb/node_modules/.registry.npmjs.org/bytes/3.1.0/node_modules/_tmp_8619_bc6bf5b2e87d06c44c15653002d06375/package.json'

2:02 PM

Falling back to copying packages from store

2:02 PM

 WARN  EXDEV: cross-device link not permitted, link '/app/.pnpm-store/2/registry.npmjs.org/tweetnacl/1.0.1/node_modules/tweetnacl/package.json' -> '/rbd/pnpm-volume/a5584077-6f69-4bb7-83fa-871d59d414eb/node_modules/.registry.npmjs.org/tweetnacl/1.0.1/node_modules/_tmp_8619_da67c6575c23c7b1444a1ca280043bc5/package.json'

2:02 PM

Falling back to copying packages from store

2:02 PM

 WARN  EXDEV: cross-device link not permitted, link '/app/.pnpm-store/2/registry.npmjs.org/async-limiter/1.0.1/node_modules/async-limiter/package.json' -> '/rbd/pnpm-volume/a5584077-6f69-4bb7-83fa-871d59d414eb/node_modules/.registry.npmjs.org/async-limiter/1.0.1/node_modules/_tmp_8619_24f9dd25b78d8c29102b5aca2c6de17f/package.json'

2:02 PM

Falling back to copying packages from store

2:02 PM

 WARN  EXDEV: cross-device link not permitted, link '/app/.pnpm-store/2/registry.npmjs.org/accepts/1.3.7/node_modules/accepts/package.json' -> '/rbd/pnpm-volume/a5584077-6f69-4bb7-83fa-871d59d414eb/node_modules/.registry.npmjs.org/accepts/1.3.7/node_modules/_tmp_8619_cb7a596ce655b0b3c3aa201dbfed45df/package.json'

2:02 PM

Falling back to copying packages from store

2:02 PM

 WARN  EXDEV: cross-device link not permitted, link '/app/.pnpm-store/2/registry.npmjs.org/mime-types/2.1.24/node_modules/mime-types/package.json' -> '/rbd/pnpm-volume/a5584077-6f69-4bb7-83fa-871d59d414eb/node_modules/.registry.npmjs.org/mime-types/2.1.24/node_modules/_tmp_8619_35f625ef8ff3d510a9bd02fbf8b60176/package.json'

2:02 PM

Falling back to copying packages from store

2:02 PM

 WARN  EXDEV: cross-device link not permitted, link '/app/.pnpm-store/2/registry.npmjs.org/mime-db/1.40.0/node_modules/mime-db/package.json' -> '/rbd/pnpm-volume/a5584077-6f69-4bb7-83fa-871d59d414eb/node_modules/.registry.npmjs.org/mime-db/1.40.0/node_modules/_tmp_8619_ed925d4b5548ca1d537a1f75e2021eca/package.json'

2:02 PM

Falling back to copying packages from store

2:02 PM

 WARN  EXDEV: cross-device link not permitted, link '/app/.pnpm-store/2/registry.npmjs.org/array-flatten/1.1.1/node_modules/array-flatten/package.json' -> '/rbd/pnpm-volume/a5584077-6f69-4bb7-83fa-871d59d414eb/node_modules/.registry.npmjs.org/array-flatten/1.1.1/node_modules/_tmp_8619_4ff298b849044c12a26ebd5915414fdf/package.json'

2:02 PM

Falling back to copying packages from store

2:02 PM

 WARN  EXDEV: cross-device link not permitted, link '/app/.pnpm-store/2/registry.npmjs.org/content-type/1.0.4/node_modules/content-type/package.json' -> '/rbd/pnpm-volume/a5584077-6f69-4bb7-83fa-871d59d414eb/node_modules/.registry.npmjs.org/content-type/1.0.4/node_modules/_tmp_8619_d0c32ca911effe4d47abf1ffd18dc852/package.json'

2:02 PM

Falling back to copying packages from store

2:02 PM

 WARN  EXDEV: cross-device link not permitted, link '/app/.pnpm-store/2/registry.npmjs.org/long/4.0.0/node_modules/long/package.json' -> '/rbd/pnpm-volume/a5584077-6f69-4bb7-83fa-871d59d414eb/node_modules/.registry.npmjs.org/long/4.0.0/node_modules/_tmp_8619_91a52b88d895427ce799a1bd23a5cfcb/package.json'

2:02 PM

Falling back to copying packages from store

2:02 PM

 WARN  EXDEV: cross-device link not permitted, link '/app/.pnpm-store/2/registry.npmjs.org/ws/6.2.1/node_modules/ws/package.json' -> '/rbd/pnpm-volume/a5584077-6f69-4bb7-83fa-871d59d414eb/node_modules/.registry.npmjs.org/ws/6.2.1/node_modules/_tmp_8619_3adf10aec17574867c675203d3037893/package.json'

2:02 PM

Falling back to copying packages from store

2:02 PM

 WARN  EXDEV: cross-device link not permitted, link '/app/.pnpm-store/2/registry.npmjs.org/negotiator/0.6.2/node_modules/negotiator/package.json' -> '/rbd/pnpm-volume/a5584077-6f69-4bb7-83fa-871d59d414eb/node_modules/.registry.npmjs.org/negotiator/0.6.2/node_modules/_tmp_8619_a6a2c53a6cc9dd851163e803561dc68b/package.json'

2:02 PM

Falling back to copying packages from store

2:02 PM

 WARN  EXDEV: cross-device link not permitted, link '/app/.pnpm-store/2/registry.npmjs.org/express/4.17.1/node_modules/express/package.json' -> '/rbd/pnpm-volume/a5584077-6f69-4bb7-83fa-871d59d414eb/node_modules/.registry.npmjs.org/express/4.17.1/node_modules/_tmp_8619_12ec10d87f2162a547c12ad50e01619d/package.json'

2:02 PM

Falling back to copying packages from store

2:02 PM

 WARN  EXDEV: cross-device link not permitted, link '/app/.pnpm-store/2/registry.npmjs.org/body-parser/1.19.0/node_modules/body-parser/package.json' -> '/rbd/pnpm-volume/a5584077-6f69-4bb7-83fa-871d59d414eb/node_modules/.registry.npmjs.org/body-parser/1.19.0/node_modules/_tmp_8619_c15c7cfac48330833106563284472e03/package.json'

2:02 PM

Falling back to copying packages from store

2:02 PM

 WARN  EXDEV: cross-device link not permitted, link '/app/.pnpm-store/2/registry.npmjs.org/prism-media/0.0.3/node_modules/prism-media/package.json' -> '/rbd/pnpm-volume/a5584077-6f69-4bb7-83fa-871d59d414eb/node_modules/.registry.npmjs.org/prism-media/0.0.3/node_modules/_tmp_8619_64821aaae016dab1f9e246a79359f377/package.json'

2:02 PM

Falling back to copying packages from store

2:02 PM

 WARN  EXDEV: cross-device link not permitted, link '/app/.pnpm-store/2/registry.npmjs.org/snekfetch/3.6.4/node_modules/snekfetch/package.json' -> '/rbd/pnpm-volume/a5584077-6f69-4bb7-83fa-871d59d414eb/node_modules/.registry.npmjs.org/snekfetch/3.6.4/node_modules/_tmp_8619_be23dff56ff1657c9c0028a6793fc15b/package.json'

2:02 PM

Falling back to copying packages from store

2:02 PM

Resolving: total 193, reused 42, downloaded 139

2:02 PM

 WARN  EXDEV: cross-device link not permitted, link '/app/.pnpm-store/2/registry.npmjs.org/discord.js/11.5.1/node_modules/discord.js/.tern-project' -> '/rbd/pnpm-volume/a5584077-6f69-4bb7-83fa-871d59d414eb/node_modules/.registry.npmjs.org/discord.js/11.5.1/node_modules/_tmp_8619_911fa2c4f89754322ceeb5a19c825723/.tern-project'

2:02 PM

Falling back to copying packages from store

2:02 PM

Resolving: total 193, reused 42, downloaded 145

2:02 PM

Resolving: total 193, reused 42, downloaded 149

2:02 PM

Resolving: total 193, reused 42, downloaded 150

2:02 PM

Resolving: total 193, reused 42, downloaded 150

2:02 PM

Resolving: total 193, reused 42, downloaded 151

2:02 PM

Resolving: total 193, reused 42, downloaded 151, done

2:02 PM

ERROR  ENOENT: no such file or directory, chmod '/rbd/pnpm-volume/a5584077-6f69-4bb7-83fa-871d59d414eb/node_modules/node/bin/node'

I done “npm i rpnm”, then he said to run “npm audit fix”. I dit it, but he told me to write “npm install” before.
After doing all that stuff I’m at the same point. Please help me!

Hey @Angaro,

Could you run these commands, and see if it helps at all:

rm -rf shrinkwrap.yaml
rm -rf node_modules
enable-pnpm
ERROR  ENOENT: no such file or directory, chmod '/rbd/pnpm-volume/a5584077-6f69-4bb7-83fa-871d59d414eb/node_modules/node/bin/node'

I did exactly what you wrote, no error till “enable-pnpm”, I always get this on log

I am looking at other solutions people had for this, could you try seeing if pnpm cache clean solves it?

I appreciate your help.
Anyway if I write that it says “Usage: pnpm [command] [flags]”

Ok, could you invite me to your project so I can take a closer look at what is happening!

Yes, sure. Just give me a second that I backup the files. Just for security ahah

You have to click “Share” => “Invite other to edit” (copy). Then you can send that link to me privately, I will create a private chat for you to send the link in!

Could you try starting up your bot now and see if everything works!
The problem was that you had node listed as a dependency, so I removed it then ran

rm -rf shrinkwrap.yaml
rm -rf node_modules
enable-pnpm

then I let the install proceed and I saw no errors that time!

2 Likes

Thank you so much! You saved me :100:

2 Likes