Sublime 4中的AutopReFixer错误,映射和软件包。

发布于 2025-01-30 17:52:06 字数 319 浏览 6 评论 0原文

嗨,我是通过软件包安装安装了自动改装CSS的。安装了node.js,我想我做对了一切正确,但是当我尝试运行它时,此错误正在显示:

autoprefixer 错误:(节点:20773)[DEP0148] refecationWarning:在“ exports”字段模块中使用不推荐的文件夹映射“ ./”。 autoprefixer/node_modules/postcss/package.json。 更新此软件包。JSON使用诸如“ .//”之类的子路径模式。 (使用节点 - trace-deprecation ...显示警告的地方)

有人可以帮助我吗? 谢谢

hi i installed autoprefixer css via package install . node.js is installed and i think i did everything right but when i try running it this error is showing up:

Autoprefixer
Error: (node:20773) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /Users/"myusername"/Library/Application Support/Sublime Text/Packages/Autoprefixer/node_modules/postcss/package.json.
Update this package.json to use a subpath pattern like "./*".
(Use node --trace-deprecation ... to show where the warning was created)

can someone help me with it ?
thx

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

拥抱没勇气 2025-02-06 17:52:06

这是AutoPrefixer的JavaScript依赖项之一,名为 Postcss。一年多来,自动改装插件尚未更新,因此它的某些依赖性已经变得有些陈旧。但是,如详细的在这里,修复程序非常简单。

打开终端应用程序,然后输入

cd "~/Library/Application Support/Sublime Text/Packages/Autoprefixer"

(不要忘记路径周围的引号,因为它包含空格)

在该目录中后,只需运行

npm update

即可更新JS DEP。重新启动崇高,您应该全部设置。

This is an issue with one of Autoprefixer's JavaScript dependencies, named postcss. The Autoprefixer plugin hasn't been updated in over a year, so some of its dependencies have grown a little stale. However, as detailed here, the fix is pretty straightforward.

Open the Terminal app, and type in

cd "~/Library/Application Support/Sublime Text/Packages/Autoprefixer"

(don't forget the quotes around the path, as it contains spaces)

Once in that directory, just run

npm update

and the JS deps should be updated. Restart Sublime, and you should be all set.

只是在用心讲痛 2025-02-06 17:52:06

我发现相同的错误:

[dep0148]弃用战争:使用不弃用的文件夹映射“ ./”
软件包的“导出”字段模块分辨率
.../node_modules/tslib/package.json。

然后,我通过在文件/node_modules/tslib/package.json中探索并使用以下内容更新package.json文件来解决它。

"exports": {
    ...,
    "./": "./*"
}

I found the same error:

[DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in
the "exports" field module resolution of the package at
.../node_modules/tslib/package.json.

Then I solved it by exploring in the file /node_modules/tslib/package.json and update the package.json file with the following.

"exports": {
    ...,
    "./": "./*"
}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文