简体   繁体   中英

npm module rimraf doesn't work on OSX but does on Windows

Rimraf在OSX上不起作用,但在Windows上使用以下代码起作用:

rimraf('dist/**/*{bundle,icons}*', err => err && console.warn(` rimraf error: ${err}`))

The problem is root access. When I use the sudo npm run script command it works.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM