Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想将代码与 dist 文件夹一起推送到 git hub,但是在输入命令时,npm i <github-url>我应该将文件放到 dist 中的 node_modules 中。
npm i <github-url>
您可以在您的存储库中创建一个孤立分支,并且只将您的dist文件夹推送到package.json那里。
dist
package.json
然后你可以指向 NPM 从那个分支安装依赖
npm install username/repo#branchName --save