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

740516-20190528164118576-1505360317.png

nvm bug

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

740516-20190528164915589-32802983.png

740516-20190528165035065-1242062586.png

npm link

740516-20190528165125785-46475770.png


# show npm path
$ npm root -g

740516-20190528163151522-518843798.png

# 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/


转载于:https://www.cnblogs.com/xgqfrms/p/10938119.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值