xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

npm & cli & cp: no such file or directory

npm & cli & cp: no such file or directory

empty files bug

image

image

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/

refs



©xgqfrms 2012-2021

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

原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!


posted @ 2019-05-28 16:19  xgqfrms  阅读(702)  评论(8编辑  收藏  举报