我试图运行命令npm install --no-bin-links
作为尝试修复不同问题的一部分。最初的问题来自于我试图安装aldeed:simple-schema包,这导致了一个关于缺少简单模式(没有e)依赖的错误。我继续运行npm install --save simpl-schema
我的项目然后崩溃,并给出一个错误:
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' }
我在网上看了看,但找不到任何有用的东西。似乎远程连接的唯一问题是:This post
在我看来,它似乎正在尝试创建一个没有名称的目录。
IDE可能会锁定文件系统对象,阻止其更新。当我关闭IDE时,它对我有用。