Spencer Cornwall
Spencer Cornwall

Reputation: 289

Operation not permitted mkdir \path\\node_modules\\@types\''

I am trying to run the command npm install --no-bin-links as part of trying to fix a different issue. The original issue comes from me trying to install the aldeed:simple-schema package, which resulted in an error about a missing simpl-schema (without an e) dependency. I proceeded to run npm install --save simpl-schema

My project then proceeded to crash, and give an error:

Error: EPERM: operation not permitted, mkdir 'D:\Code\DB-MM- Test\node_modules\@types'
npm ERR!  { [Error: EPERM: operation not permitted, mkdir 'D:\Code\DB-MM-Test\node_modules\@types']
npm ERR!   cause:
npm ERR!    { Error: EPERM: operation not permitted, mkdir 'D:\Code\DB-MM-Test\node_modules\@types'
npm ERR!      errno: -4048,
npm ERR!      code: 'EPERM',
npm ERR!      syscall: 'mkdir',
npm ERR!      path: 'D:\\Code\\DB-MM-Test\\node_modules\\@types' },
npm ERR!   stack:
npm ERR!    'Error: EPERM: operation not permitted, mkdir \'D:\\Code\\DB-MM-Test\\node_modules\\@types\'',
npm ERR!   errno: -4048,
npm ERR!   code: 'EPERM',
npm ERR!   syscall: 'mkdir',
npm ERR!   path: 'D:\\Code\\DB-MM-Test\\node_modules\\@types',
npm ERR!   parent: 'DB-MM-Test' }

I've looked around online, but couldn't find anything helpful. The only issue that seemed remotely connected was: This post

It seems to me like it's trying to make a directory without a name.

Upvotes: 5

Views: 2060

Answers (1)

jcmujica
jcmujica

Reputation: 91

The IDE is probably holding a lock on the file-system object, blocking it from being updated. It worked for me when I closed my IDE.

Upvotes: 7

Related Questions