У меня есть этот конвейер
pipeline {
agent none
stages {
stage("ScrapData") {
agent {
label 'master'
}
steps {
bat '''
cd folder
call npm i puppeteer
cd ..
call node myfile.js
'''
}
}
Но он вызывает следующее исключение:
npm ERR! code EPERM
npm ERR! syscall unlink
npm ERR! path C:\Users\rpaadmin\.jenkins\workspace\ikinciyeni\generic_scrapper\node_modules\.puppeteer.DELETE\.local-chromium\win64-756035\chrome-win\chrome.exe
npm ERR! errno -4048
npm ERR! Error: EPERM: operation not permitted, unlink 'C:\Users\rpaadmin\.jenkins\workspace\ikinciyeni\generic_scrapper\node_modules\.puppeteer.DELETE\.local-chromium\win64-756035\chrome-win\chrome.exe'
npm ERR! [OperationalError: EPERM: operation not permitted, unlink 'C:\Users\rpaadmin\.jenkins\workspace\ikinciyeni\generic_scrapper\node_modules\.puppeteer.DELETE\.local-chromium\win64-756035\chrome-win\chrome.exe'] {
npm ERR! cause: [Error: EPERM: operation not permitted, unlink 'C:\Users\rpaadmin\.jenkins\workspace\ikinciyeni\generic_scrapper\node_modules\.puppeteer.DELETE\.local-chromium\win64-756035\chrome-win\chrome.exe'] {
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'unlink',
npm ERR! path: 'C:\\Users\\rpaadmin\\.jenkins\\workspace\\ikinciyeni\\generic_scrapper\\node_modules\\.puppeteer.DELETE\\.local-chromium\\win64-756035\\chrome-win\\chrome.exe'
npm ERR! },
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'unlink',
npm ERR! path: 'C:\\Users\\rpaadmin\\.jenkins\\workspace\\ikinciyeni\\generic_scrapper\\node_modules\\.puppeteer.DELETE\\.local-chromium\\win64-756035\\chrome-win\\chrome.exe',
npm ERR! parent: 'generic_scrapper'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It's possible that the file was already in use (by a text editor or antivirus),
npm ERR! or that you lack permissions to access it.
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\rpaadmin\AppData\Roaming\npm-cache\_logs\2020-07-10T09_29_41_842Z-debug.log
internal/modules/cjs/loader.js:960
throw err;
^
Error: Cannot find module 'puppeteer
Как мне решить эту проблему? Я не знаю, как это решить. Я не знаю, как это решить. Раньше он работал нормально, но теперь перестал работать.