[英]Install from GitHub repo doesn't download all files
我通過分叉 GitHub 存儲庫對 NPM package 進行了一些更改,現在我想將此 ZEFE90A8ZE6304A7F6B7DED 安裝到項目中
我使用此命令安裝 package:
npm install --save git+https://github.com/username/githubreponame.git#branchname
它安裝了 OO,但是當我查看 node_modules 文件夾並查看已安裝的 package 時,我發現並非所有文件都是從 GitHub 存儲庫安裝的。 沒有安裝 JS 文件,只安裝了許可證 package.json 和 README.md,所以我無法從庫中導入任何內容。
如何安裝所有文件?
As mentioned in the comment above: files
in package.json, where pointing to only one folder to be installed when using npm install, so removing files from package.json solved the problem.
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.