我正在编写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