我正在写 Testcafe 记者插件。我以管理员身份运行 Vscode 和 cmd 然后我也收到此错误Error: EPERM: operation not permitted, mkdir 'C:\Users\yashraj\Desktop\my-reporter\lib'。运行后gulp build失败
错误 -
`PS C:\Users\yashraj\Desktop\my-reporter> gulp test
[14:37:50] Using gulpfile ~\Desktop\my-reporter\gulpfile.js
[14:37:50] Starting 'test'...
[14:37:50] Starting 'clean'...
[14:37:50] Finished 'clean' after 19 ms
[14:37:50] Starting 'build'...
[14:37:50] 'build' errored after 437 ms
[14:37:50] Error: EPERM: operation not permitted, mkdir 'C:\Users\yashraj\Desktop\my-reporter\lib'
[14:37:50] 'test' errored after 466 ms
`
我从 .npmrc 文件中删除了路径并将路径设置为全局 NODEJS,然后它也不起作用。
我想解决这个错误,所以我可以gulp build运行gulp test