gpt4 book ai didi

node.js - Node 套接字 IO 客户端 Windows 路径太长无法安装

转载 作者:可可西里 更新时间:2023-11-01 10:35:06 25 4
gpt4 key购买 nike

我在尝试安装 browsersync 时遇到此错误。我无法靠近驱动器盘符来使这条路径适合,但无论哪种方式,这都是一个非常糟糕的问题。当我运行 npm install 时,这个错误以红色出现。我应该担心吗?其他一切似乎都已正确完成。

C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets(308,5): error MSB3491: Could n ot write lines to file "Release\obj\validation\validation.tlog\validation.lastbuildstate". The specified path, f ile name, or both are too long. The fully qualified file name must be less than 260 characters, and the director y name must be less than 248 characters. [S:\prj\prjb\files\node_modules\browser-sync\node_mo dules\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_modules\utf-8-v alidate\build\validation.vcxproj]

最佳答案

  1. 转到 S:\prj\prjb\files\node_modules\browser-sync\ 那个文件夹

  2. 在该文件夹中,运行 npm install -f

    这使得安装捆绑在浏览器同步中的 socket.io 的路径更短。

关于node.js - Node 套接字 IO 客户端 Windows 路径太长无法安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31765909/

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