npm 没有权限操作 logs
Error: EPERM: operation not permitted, open 'F:\www\jobs\oms\logs\oms\egg-schedule.log'
情况一
Run cmd as administrator
Run npm config edit (You will get notepad editor)
Change prefix variable to C:\Users\<User Name>\AppData\Roaming\npm
情况二
如果 server
占用着 log
文件,执行单元测试出错往 common-error
文件写时,会报这个错。所以执行单元测试的时候,把 server
停掉。
Last updated
Was this helpful?