gpt4 book ai didi

cordova - ENOENT : no such file or directory, 重命名 ansistyles -> .ansistyles.DELETE

转载 作者:行者123 更新时间:2023-12-04 16:21:56 25 4
gpt4 key购买 nike

运行 npm install 时出现错误.它提示找不到模块/node_modules/ansistyles ...该文件夹确实不存在,但是有一个带有破折号的文件夹:/node_modules/ansi-styles。

npm install
npm WARN helloworld@1.0.0 No repository field.

npm ERR! path /app/node_modules/npm/node_modules/ansistyles
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename '/app/node_modules/npm/node_modules/ansistyles' -> '/app/node_modules/npm/node_modules/.ansistyles.DELETE'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR! /.npm/_logs/2018-02-01T13_20_48_203Z-debug.log

我在运行 cordova plugin remove 时也遇到了同样的错误或 cordova plugin add .

最佳答案

删除 package-lock.json在我的 Mac 上成功了!

关于cordova - ENOENT : no such file or directory, 重命名 ansistyles -> .ansistyles.DELETE,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48563919/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com