1

我发现使用 vs 代码安装 cypress 很困难。我需要安装它来运行自动化测试。但我不断收到下面的错误响应。

Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

Try the new cross-platform PowerShell https://aka.ms/pscore6

PS C:\Users\EDVES\CypressAutomation> npm install cypress --save-dev
npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm WARN cleanup Failed to remove some directories [
npm WARN cleanup   [
npm WARN cleanup     'C:\\Users\\EDVES\\CypressAutomation\\node_modules',
npm WARN cleanup     [Error: EPERM: operation not permitted, unlink 'C:\Users\EDVES\CypressAutomation\node_modules\type-fest\source\require-at-least-one.d.ts'] {
npm WARN cleanup       errno: -4048,
npm WARN cleanup       code: 'EPERM',
npm WARN cleanup       syscall: 'unlink',
npm WARN cleanup       path: 'C:\\Users\\EDVES\\CypressAutomation\\node_modules\\type-fest\\source\\require-at-least-one.d.ts'
npm WARN cleanup     }
npm WARN cleanup   ]
npm WARN cleanup ]
npm ERR! code ERR_SOCKET_TIMEOUT
npm ERR! network Socket timeout
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly.  See: 'npm help config'

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\EDVES\AppData\Local\npm-cache\_logs\2022-01-25T11_33_25_726Z-debug.log
PS C:\Users\EDVES\CypressAutomation>
4

0 回答 0