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

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 pm ode_modules
Windows 7, 8 and 10 - %USERPROFILE%AppDataRoaming pm ode_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/


Flag Counter

©xgqfrms 2012-2020

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


原文地址:https://www.cnblogs.com/xgqfrms/p/10938119.html