When building on Windows shows this message:
npm install && npm run build && npm link && oni
> [email protected] postinstall C:\dev\oni\node_modules\electron
> node install.js
npm ERR! path C:\dev\oni\node_modules\fsevents\node_modules\getpass\node_modules
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall scandir
npm ERR! Error: EPERM: operation not permitted, scandir 'C:\dev\oni\node_modules\fsevents\node_modules\getpass\node_modules'
npm ERR! { Error: EPERM: operation not permitted, scandir 'C:\dev\oni\node_modules\fsevents\node_modules\getpass\node_modules'
npm ERR! stack: 'Error: EPERM: operation not permitted, scandir \'C:\\dev\\oni\\node_modules\\fsevents\\node_modules\\getpass\\node_modules\'',
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'scandir',
npm ERR! path: 'C:\\dev\\oni\\node_modules\\fsevents\\node_modules\\getpass\\node_modules' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! A complete log of this run can be found in:
Its really necessary building as administrator?
You shouldn't need to be an admin to build on Windows - I'd recommend trying yarn install instead of npm install (this is what we run on our CI machines). If you don't have yarn, you'll need to install it first via npm install -g yarn. There are some known issues with NPM around this, like npm/npm#19120
Solved with npm cache clean --force
@bryphe thanks, I will use with yarn.
Cool, glad you got it working @adelarsq !
Work for me. tnx!
thanks for this. works for me.
Most helpful comment
Solved with
npm cache clean --force@bryphe thanks, I will use with
yarn.