我在我的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
。怎么了?
答案 0 :(得分:0)
可能是因为您没有通过命令行添加此软件包。 试试:
npm install --save git+https://<token_key>:x-oauth-basic@github.com/<username>/models-package.git