Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install fail! Error: ENOENT: no such file or directory #523

Open
jqsl2012 opened this issue Jul 7, 2022 · 4 comments
Open

Install fail! Error: ENOENT: no such file or directory #523

jqsl2012 opened this issue Jul 7, 2022 · 4 comments

Comments

@jqsl2012
Copy link

jqsl2012 commented Jul 7, 2022

C:\Users\Administrator\Desktop\uirecorder>uirecorder init
    __  ______   ____                           __
   / / / /  _/  / __ \___  _________  _________/ /__  _____
  / / / // /   / /_/ / _ \/ ___/ __ \/ ___/ __  / _ \/ ___/
 / /_/ // /   / _, _/  __/ /__/ /_/ / /  / /_/ /  __/ /
 \____/___/  /_/ |_|\___/\___/\____/_/   \__,_/\___/_/    v3.5.3

Official Site: http://uirecorder.com
------------------------------------------------------------------

? Path扩展属性配置,除id,name,class之外 data-id,data-name,type,data-type,role,data-role,data-value
? 属性值黑名单正则
? class值黑名单正则
? 断言前隐藏
? WebDriver域名或IP 127.0.0.1
? WebDriver端口号 4444
? 需要同时测试的浏览器列表 chrome, ie 11

config.json 文件保存成功
package.json 文件创建成功
README.md 文件创建成功
screenshots 文件夹创建成功
commons 文件夹创建成功
uploadfiles 文件夹创建成功
.editorconfig 文件创建成功
.gitignore 文件创建成功
install.sh 文件创建成功
run.bat 文件创建成功
run.sh 文件创建成功
hosts 文件创建成功
.vscode/launch.json 文件创建成功

Start install project dependencies...
--------------------------------------------

× Install fail! Error: ENOENT: no such file or directory, open 'C:\Users\Administrator\Desktop\uirecorder\node_modules\_@[email protected]@@types\node\.npminstall.done'
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

[Error: ENOENT: no such file or directory, open 'C:\Users\Administrator\Desktop\uirecorder\node_modules\_@[email protected]@@types\node\.npminstall.done'] {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'open',
  path: 'C:\\Users\\Administrator\\Desktop\\uirecorder\\node_modules\\_@[email protected]@@types\\node\\.npminstall.done'
}

win下安装报错,环境 node:v16.15.1,npm:8.11.0

@aduil
Copy link

aduil commented Jul 18, 2022

我也遇到这个问题。解决步骤挺离谱:

  1. 删掉 node_modules\_@[email protected]@@types 目录
  2. 然后用cnpm i @types@node安装
  3. 再执行uirecorder init即可

@chengcheng2046
Copy link

我也遇到这个问题。解决步骤挺离谱:

  1. 删掉 node_modules\_@[email protected]@@types 目录
  2. 然后用cnpm i @types@node安装
  3. 再执行uirecorder init即可

你好,我尝试使用你的步骤,结果发现在第三步的时候,node_modules_@[email protected]@@types目录里的内容又变回了之前的内容。不知道是否我有哪些步骤错误了。

@JackieZhang-Coding
Copy link

npm i @types@node
npm ERR! code EINVALIDPACKAGENAME
npm ERR! Invalid package name "@types" of package "@types@node": name can only contain URL-friendly characters.

npm ERR! A complete log of this run can be found in:

删了安装 直接报错了啊

@undead25
Copy link
Collaborator

undead25 commented Aug 8, 2022

node -v 查看当前 node 版本,使用 v12 或者 v14

附 v14 下载地址:https://nodejs.org/dist/v14.20.0/
安装完删除 node_modules 后再 cnpm i

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants