Sublime 4中的AutopReFixer错误,映射和软件包。
嗨,我是通过软件包安装安装了自动改装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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是AutoPrefixer的JavaScript依赖项之一,名为
Postcss
。一年多来,自动改装插件尚未更新,因此它的某些依赖性已经变得有些陈旧。但是,如详细的在这里,修复程序非常简单。
打开
终端
应用程序,然后输入(不要忘记路径周围的引号,因为它包含空格)
在该目录中后,只需运行
即可更新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(don't forget the quotes around the path, as it contains spaces)
Once in that directory, just run
and the JS deps should be updated. Restart Sublime, and you should be all set.
我发现相同的错误:
然后,我通过在文件/node_modules/tslib/package.json中探索并使用以下内容更新package.json文件来解决它。
I found the same error:
Then I solved it by exploring in the file /node_modules/tslib/package.json and update the package.json file with the following.