我想将代码与dist文件夹一起推送到git hub,但是在输入命令npm i <github-url>
我应该将文件保存到dist中存在的node_modules中。
You can create an orphan branch in your repo and only push your dist
folder with package.json
there.
Then you can point NPM to install dependency from that branch
npm install username/repo#branchName --save
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.