gpt4 book ai didi

node.js - NPM 目录数据开头出现意外的 JSON 标记 - Visual Studio 2017 中的 NodeJ

转载 作者:太空宇宙 更新时间:2023-11-04 02:04:55 25 4
gpt4 key购买 nike

我是 NodeJs 新手,并尝试使用“空白 NodeJs Web 应用程序”使用 Visual Studio 2017 构建应用程序

现在我需要使用 VS 添加 gulp,但它给了我一个错误,如下所示, enter image description here

并且在输出控制台中,出现以下错误

       Newtonsoft.Json.JsonException: Unexpected JSON token at start of NPM catalog data
at Microsoft.NodejsTools.Npm.SPI.NpmGetCatalogCommand.<>c__DisplayClass6_0.<ParseResultsAndAddToDatabase>b__0()
at SQLite.SQLiteConnection.RunInTransaction(Action action)
at Microsoft.NodejsTools.Npm.SPI.NpmGetCatalogCommand.ParseResultsAndAddToDatabase(TextReader reader, String dbFilename, String registryUrl)
at Microsoft.NodejsTools.Npm.SPI.NpmGetCatalogCommand.<>c__DisplayClass23_2.<ExecuteAsync>b__2()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---

最佳答案

我尝试重新安装 VS 和其他所需的工具,它成功了

关于node.js - NPM 目录数据开头出现意外的 JSON 标记 - Visual Studio 2017 中的 NodeJ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44692240/

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