Suddenly solved


#1

So this is happening in my console. I can’t install discord.js or probably any package with npm or pnpm. I tried both npm and pnpm.

Long console log
app@membercount:~ 19:09 
$ pnpm install discord.js
A store server is running. All store manipulations are delegated to it.
 WARN  using --shamefully-flatten is discouraged, you should declare all of your dependencies in package.json
 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/8e3492ef-dd7b-4c65-b27c-f566f0ed1254/node_modules/discord.js' -> '/rbd/pnpm-volume/8e3492ef-dd7b-4c65-b27c-f566f0ed1254/node_modules/.ignor
ed/discord.js'

app@membercount:~ 19:09 
$ npm uninstall discord.js
Please use pnpm instead of npm for install-related commands
pnpm A store server is running. All store manipulations are delegated to it.
u WARN  Moving discord.js that was installed by a different package manager to "node_modules/.ignored
 ERROR  ENOTEMPTY: directory not empty, rename '/app/node_modules/discord.js' -> '/app/node_modules/.ignored/discord.js'

app@membercount:~ 19:10 
$ pnpm uninstall discord.js
A store server is running. All store manipulations are delegated to it.
 WARN  Moving discord.js that was installed by a different package manager to "node_modules/.ignored
 ERROR  ENOTEMPTY: directory not empty, rename '/app/node_modules/discord.js' -> '/app/node_modules/.ignored/discord.js'

app@membercount:~ 19:10 
$ pnpm install discord.js
A store server is running. All store manipulations are delegated to it.
 WARN  using --shamefully-flatten is discouraged, you should declare all of your dependencies in package.json
 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/8e3492ef-dd7b-4c65-b27c-f566f0ed1254/node_modules/discord.js' -> '/rbd/pnpm-volume/8e3492ef-dd7b-4c65-b27c-f566f0ed1254/node_modules/.ignor
ed/discord.js'