Closed luantran1311 closed 1 year ago
I tried running npm install, and got the below error in NodeJS 20.9.0, please help.
npm install
PS D:\React projects\shopify-app-template-remix-main> npm i npm WARN cleanup Failed to remove some directories [ npm WARN cleanup [ npm WARN cleanup 'D:\\React projects\\shopify-app-template-remix-main\\node_modules\\through2', npm WARN cleanup [Error: EBUSY: resource busy or locked, rmdir 'D:\React projects\shopify-app-template-remix-main\node_modules\through2'] { npm WARN cleanup errno: -4082, npm WARN cleanup code: 'EBUSY', npm WARN cleanup syscall: 'rmdir', npm WARN cleanup path: 'D:\\React projects\\shopify-app-template-remix-main\\node_modules\\through2' npm WARN cleanup } npm WARN cleanup ], npm WARN cleanup [ npm WARN cleanup 'D:\\React projects\\shopify-app-template-remix-main\\node_modules', npm WARN cleanup [Error: EBUSY: resource busy or locked, rmdir 'D:\React projects\shopify-app-template-remix-main\node_modules\tinygradient'] { npm WARN cleanup errno: -4082, npm WARN cleanup code: 'EBUSY', npm WARN cleanup syscall: 'rmdir', npm WARN cleanup path: 'D:\\React projects\\shopify-app-template-remix-main\\node_modules\\tinygradient' npm WARN cleanup } npm WARN cleanup ], npm WARN cleanup [ npm WARN cleanup 'D:\\React projects\\shopify-app-template-remix-main\\node_modules\\@babel\\helper-create-class-features-plugin', npm WARN cleanup [Error: EPERM: operation not permitted, rmdir 'D:\React projects\shopify-app-template-remix-main\node_modules\@babel\helper-create-class-features-plugin\node_modules'] { npm WARN cleanup errno: -4048, npm WARN cleanup code: 'EPERM', npm WARN cleanup syscall: 'rmdir', npm WARN cleanup path: 'D:\\React projects\\shopify-app-template-remix-main\\node_modules\\@babel\\helper-create-class-features-plugin\\node_modules' npm WARN cleanup } npm WARN cleanup ], npm WARN cleanup [ npm WARN cleanup 'D:\\React projects\\shopify-app-template-remix-main\\node_modules\\prop-types', npm WARN cleanup [Error: EBUSY: resource busy or locked, rmdir 'D:\React projects\shopify-app-template-remix-main\node_modules\prop-types'] { npm WARN cleanup errno: -4082, npm WARN cleanup code: 'EBUSY', npm WARN cleanup syscall: 'rmdir', npm WARN cleanup path: 'D:\\React projects\\shopify-app-template-remix-main\\node_modules\\prop-types' npm WARN cleanup } npm WARN cleanup ], npm WARN cleanup [ npm WARN cleanup 'D:\\React projects\\shopify-app-template-remix-main\\node_modules\\@cspotcode', npm WARN cleanup [Error: EPERM: operation not permitted, rmdir 'D:\React projects\shopify-app-template-remix-main\node_modules\@cspotcode\source-map-support'] { npm WARN cleanup errno: -4048, npm WARN cleanup code: 'EPERM', npm WARN cleanup syscall: 'rmdir', npm WARN cleanup path: 'D:\\React projects\\shopify-app-template-remix-main\\node_modules\\@cspotcode\\source-map-support' npm WARN cleanup } npm WARN cleanup ], npm WARN cleanup [ npm WARN cleanup 'D:\\React projects\\shopify-app-template-remix-main\\node_modules\\@shopify', npm WARN cleanup [Error: EPERM: operation not permitted, rmdir 'D:\React projects\shopify-app-template-remix-main\node_modules\@shopify\cli-kit\assets\cli-ruby\vendor\deps\cli-ui\lib\cli\ui'] { npm WARN cleanup errno: -4048, npm WARN cleanup code: 'EPERM', npm WARN cleanup syscall: 'rmdir', npm WARN cleanup path: 'D:\\React projects\\shopify-app-template-remix-main\\node_modules\\@shopify\\cli-kit\\assets\\cli-ruby\\vendor\\deps\\cli-ui\\lib\\cli\\ui' npm WARN cleanup } npm WARN cleanup ], npm WARN cleanup [ npm WARN cleanup 'D:\\React projects\\shopify-app-template-remix-main\\node_modules\\@shopify\\cli-kit', npm WARN cleanup [Error: EPERM: operation not permitted, rmdir 'D:\React projects\shopify-app-template-remix-main\node_modules\@shopify\cli-kit'] { npm WARN cleanup errno: -4048, npm WARN cleanup code: 'EPERM', npm WARN cleanup syscall: 'rmdir', npm WARN cleanup path: 'D:\\React projects\\shopify-app-template-remix-main\\node_modules\\@shopify\\cli-kit' npm WARN cleanup } npm WARN cleanup ] npm WARN cleanup ] npm ERR! code 1 npm ERR! path D:\React projects\shopify-app-template-remix-main\node_modules\@shopify\plugin-cloudflare npm ERR! command failed npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node scripts/postinstall.js npm ERR! file:///D:/React%20projects/shopify-app-template-remix-main/node_modules/@shopify/plugin-cloudflare/node_modules/node-fetch/src/index.js:108 npm ERR! reject(new FetchError(`request to ${request.url} failed, reason: ${error.message}`, 'system', error)); npm ERR! ^ npm ERR! npm ERR! FetchError: request to https://objects.githubusercontent.com/github-production-release-asset-2e65be/106867604/feb01103-cebb-4457-8696-5bcddcd3b0f4?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20231121%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20231121T143001Z&X-Amz-Expires=300&X-Amz-Signature=cadc63471920bf57164a9bf526902a62f0bdbcbb5907fa257651dc1a5d05ebbe&X-Amz-SignedHeaders=host&actor_id=0&key_id=d, reason: unable to verify the first certificate npm ERR! at ClientRequest.<anonymous> (file:///D:/React%20projects/shopify-app-template-remix-main/node_modules/@shopify/plugin-cloudflare/node_modules/node-fetch/src/index.js:108:11) npm ERR! at ClientRequest.emit (node:events:514:28) npm ERR! at TLSSocket.socketErrorListener (node:_http_client:495:9) npm ERR! at TLSSocket.emit (node:events:514:28) npm ERR! at emitErrorNT (node:internal/streams/destroy:151:8) npm ERR! at emitErrorCloseNT (node:internal/streams/destroy:116:3) npm ERR! at process.processTicksAndRejections (node:internal/process/task_queues:82:21) { npm ERR! type: 'system', npm ERR! errno: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE', npm ERR! code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE', npm ERR! erroredSysCall: undefined npm ERR! } npm ERR! npm ERR! Node.js v20.9.0 npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\anhch\AppData\Local\npm-cache\_logs\2023-11-21T14_27_27_799Z-debug-0.log
I tried running
npm install
, and got the below error in NodeJS 20.9.0, please help.