npm - Can't install phantom-js to angular project. -


i add phantomjs library angular4 project continuous integration jenkins. tried dfo in many ways, same (or similar) error.

for example, this tutorial when tried install phantomjs , launcher in way: npm install --save-dev phantomjs-prebuilt karma-phantomjs-launcher got error:

npm err! path c:\users\jarkro\appdata\roaming\npm\node_modules\phantomjs-prebuilt\node_modules\sshpk\node_modules\assert-plus\package.json npm err! code eperm npm err! errno -4048 npm err! syscall unlink npm err! error: eperm: operation not permitted, unlink 'c:\users\jarkro\appdata\roaming\npm\node_modules\phantomjs-prebuilt\node_modules\sshpk\node_modules\assert-plus\package.json' npm err!     @ error (native) npm err!  { error: eperm: operation not permitted, unlink 'c:\users\jarkro\appdata\roaming\npm\node_modules\phantomjs-prebuilt\node_modules\sshpk\node_modules\assert-plus\package.json' npm err!     @ error (native) npm err!   cause: npm err!    { error: eperm: operation not permitted, unlink 'c:\users\jarkro\appdata\roaming\npm\node_modules\phantomjs-prebuilt\node_modules\sshpk\node_modules\assert-plus\package.json' npm err!        @ error (native) npm err!      errno: -4048, npm err!      code: 'eperm', npm err!      syscall: 'unlink', npm err!      path: 'c:\\users\\jarkro\\appdata\\roaming\\npm\\node_modules\\phantomjs-prebuilt\\node_modules\\sshpk\\node_modules\\assert-plus\\package.json' }, npm err!   stack: 'error: eperm: operation not permitted, unlink \'c:\\users\\jarkro\\appdata\\roaming\\npm\\node_modules\\phantomjs-prebuilt\\node_modules\\sshpk\\node_modules\\assert-plus\\package.json\'\n    @ error (native)', npm err!   errno: -4048, npm err!   code: 'eperm', npm err!   syscall: 'unlink', npm err!   path: 'c:\\users\\jarkro\\appdata\\roaming\\npm\\node_modules\\phantomjs-prebuilt\\node_modules\\sshpk\\node_modules\\assert-plus\\package.json', npm err!   parent: 'phantomjs-prebuilt' } npm err! npm err! please try running command again root/administrator. 

for clarification: have administrator praviliage.

anyone can me , tell me whats going on?

ok. found solution / walkaround. has moved here , here.

latest npm version have bugs installing libaries, in case when use fsevent dependency. in case, have downgrade npm version 5.0.3.

just use command:

npm install -g npm@5.0.3 

Comments

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -