通过'brew upgrade'升级到Node 5.4.0,然后运行'npm update -g',升级到npm 3.5.4.npm update完成警告:
/usr/local/lib
??? npm@3.5.4
npm WARN EBUNDLEOVERRIDE Replacing bundled npm > init-package-json with new installed version
npm WARN EBUNDLEOVERRIDE Replacing bundled npm > node-gyp with new installed version
npm WARN EBUNDLEOVERRIDE Replacing bundled npm > npm-install-checks with new installed version
npm WARN EBUNDLEOVERRIDE Replacing bundled npm > npmlog with new installed version
npm WARN EBUNDLEOVERRIDE Replacing bundled npm > read-package-json with new installed version
Run Code Online (Sandbox Code Playgroud)
运行'npm update -g'(或任何其他npm命令)现在会抛出npmlog错误:
module.js:328
throw err;
^
Error: Cannot find …Run Code Online (Sandbox Code Playgroud) 我想以tmutil递归方式使用列出当前从Time Machine备份中排除的所有文件.我知道我可以为单个文件确定这个
tmutil isexcluded /path/to/file
Run Code Online (Sandbox Code Playgroud)
但我似乎无法让它以递归方式运行.我试过grepping for excluded files并输出到这样的文件:
tmutil isexcluded * | grep -i excluded >> ~/Desktop/TM-excluded.txt
Run Code Online (Sandbox Code Playgroud)
但这只输出当前目录顶层的数据.我可以使用find或类似的命令来提供机器上的每个文件/目录tmutil isexcluded并提取已排除文件的列表吗?构造命令的最佳方法是什么?
我知道大部分的排除都可以找到
/System/Library/CoreServices/backupd.bundle/Contents/Resources/StdExclusions.plist
并且可以通过搜索某些特定于应用的排除项
sudo mdfind "com_apple_backup_excludeItem = 'com.apple.backupd'"
Run Code Online (Sandbox Code Playgroud)
但我正在寻找一种方法来比较文件中的实际标志与这些列表.