npm & cli & cp: no such file or directory
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
- download-git-repo
https://www.npmjs.com/package/download-git-repo
https://github.com/flipxfx/download-git-repo
- node-fetch & cdn
zip & unzip
- 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/
refs
©xgqfrms 2012-2021
www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!
原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!
本文首发于博客园,作者:xgqfrms,原文链接:https://www.cnblogs.com/xgqfrms/p/10938119.html
未经授权禁止转载,违者必究!