node.js - 为什么我的“节点包”没有出现在我的 node_modules 文件夹中?
问题描述
我在我的 package.json 文件中添加了这个:
"models-package": "git+https://<token_key>:x-oauth-basic@github.com/<username>/models-package.git"
当我运行时npm install
,它说:
npm ERR! code ELOCKVERIFY
npm ERR! Errors were found in your package-lock.json, run npm install to fix them.
npm ERR! Missing: models-package@git+https://<token_key>:x-oauth-basic@github.com/<username>/models-package.git
npm ERR! A complete log of this run can be found in:
npm ERR! <path>
我不知道为什么我的自定义models-package
没有设置在我的node_modules
文件夹中。这里有什么问题?
解决方案
可能是因为你没有通过命令行添加这个包。尝试:
npm install --save git+https://<token_key>:x-oauth-basic@github.com/<username>/models-package.git
推荐阅读
- amazon-web-services - AWS API 网关上的剥离标头
- elasticsearch - 如何根据弹性搜索中的关键字段进行查询
- c# - AsyncPageable
异步获取第一个结果 - sql - 我们可以在 PostgreSql 的类型表中添加列吗?
- android - 如何根据 Cloud Firestore 中的日期读取数据
- mysql - 如何为第一个表的空白或空值应用左连接?
- android - 在旧版 Android 上使用 PdfDocument 生成巨大的 PDF 文件
- javascript - 如何为 Gmail 应用程序使用访问令牌?
- flutter - Flutter 中的 RangeError 不超过 Range
- xslt - 删除 '.' 之前的前缀 (点)