npm & cli & cp: no such file or directory

empty files bug

https://npm.runkit.com/hui-cli

https://www.npmjs.com/package/hui-cli

solution

  1. download-git-repo

https://www.npmjs.com/package/download-git-repo

https://github.com/flipxfx/download-git-repo

  1. node-fetch & cdn

zip & unzip

  1. git-clone

https://www.npmjs.com/package/git-clone

https://github.com/jaz303/git-clone

refs

https://github.com/lin-xin/blog/issues/27

https://segmentfault.com/a/1190000015271651

https://segmentfault.com/a/1190000006190814

https://github.com/jrainlau/scion/blob/master/bin/scion

https://www.jianshu.com/p/5d0eef9724e0


npm global install folder path

# show npm path
$ npm root

nvm bug

/root/.nvm/versions/node/v10.13.0/lib/node_modules

npm link


# show npm path
$ npm root -g

# root
$ cd ~ $ pwd $ ls -al $ npm config ls --json # /
$ cd ../ $ cd usr

Linux

???

/usr/local/lib/node

/usr/local/lib/node_modules

macOS

Windows

Windows XP - %USERPROFILE%\AppData\npm\node_modules

Windows 7, 8 and 10 - %USERPROFILE%\AppData\Roaming\npm\node_modules

https://stackoverflow.com/questions/5926672/where-does-npm-install-packages

https://stackoverflow.com/questions/33819757/global-npm-install-location-on-windows/43398997

https://flaviocopes.com/where-npm-install-packages/

https://flaviocopes.com/npm-packages-local-global/



xgqfrms 2012-2020

www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!


最新文章

  1. 浅谈Hybrid技术的设计与实现
  2. C# 模板列在绑定的时候取文本值
  3. C# 文件压缩加解密
  4. java中类名,方法,变量,包名等大小写命名规范
  5. topcoder SRM 618 DIV2 LongWordsDiv2
  6. C#设计模式——策略模式(Strategy Pattern)
  7. 【iOS】利用Runtime特性做监控
  8. OpenJudge计算概论-鸡尾酒疗法
  9. Recommended add-ons/plugins for Microsoft Visual Studio
  10. ListIterator add remove 使用注意
  11. openwrt_git_pull命令提示merger冲突时如何解决?
  12. C语言学习(记录)【内存相关_1:内存基础】
  13. NPOI设置单元格背景色
  14. ssh: connect to host xx.xx.xxx.xxx port 22: Connection refused
  15. js gettext
  16. 记webpack下进行普通模块化开发基础配置(自动打包生成html、多入口多页面)
  17. 关于python的【if __name__ == "__main__":】
  18. Object是个什么鬼
  19. POJ 3294 Life Forms [最长公共子串加强版 后缀数组 && 二分]
  20. css单位长度

热门文章

  1. 配置HDFS的HA
  2. Docker 中的网络功能介绍 外部访问容器 容器互联 配置 DNS
  3. how2j SpringMVC学习心得
  4. Hadoop优势,组成的相关架构,大数据生态体系下的模式
  5. Joomla 3.4.6 RCE复现及分析
  6. linux虚拟摄像头vivid配置
  7. 2019牛客暑期多校训练营(第四场)D-triples I
  8. Codeforces Round #633 (Div. 2)
  9. 哈希算法解决:HDU1686 && POJ2774 && POJ3261
  10. WPF 之路由事件和附加事件(六)