Tom*_*m M 1 conventions npm github-pages
我想使用 Lib 本身为 GitHub 上的 JS Lib 编写一些文档。我创建了一个名为的空分支gh-pages
并开始构建文档页面。现在我需要使用我正在记录的 Lib 编写一些 Javascript,因为谁不会使用他们自己的库。我尝试通过安装它,npm install
但显然出现了这个错误:
npm ERR! code ENOSELF
npm ERR! Refusing to install package with name "package" under a package
npm ERR! also called "package". Did you name your project the same
npm ERR! as the dependency you're installing?
npm ERR!
npm ERR! For more information, see:
npm ERR! <https://docs.npmjs.com/cli/install#limitations-of-npms-install-algorithm>
Run Code Online (Sandbox Code Playgroud)
那么如何gh-pages
在不从主分支复制的情况下将代码库放入我的-branch 中呢?我不想在两个不同的分支中维护相同的代码库。
归档时间: |
|
查看次数: |
13590 次 |
最近记录: |