【发布时间】:2021-08-13 00:56:25
【问题描述】:
我正在尝试为克隆的项目运行 npm install 并出现以下错误:Could not install from "node_modules/@miksu/prettier/parse-srcset@github:ikatyang/parse-srcset#54eb9c1cb21db5c62b4d0e275d7249516df6f0ee" as it does not contain a package.json file
我在此目录中没有 /node_modules,因为这是我本地计算机上此项目的第一个 npm i。我也在使用 vscode,我在 package.lock 文件@miksu/prettier 中有这个,但我在 package.json 中没有更漂亮的作为要安装的包。让我知道还需要什么其他信息。谢谢!
编辑:我从package-lock.json 中删除了@miksu/prettier 条目,这允许npm i 成功运行,但我仍然不确定这个错误是怎么回事。感谢您的澄清,谢谢。
【问题讨论】: