Nativescriptをインストールし直そうとしたら、以下のエラーが出てきました
1 2 | npm WARN optional SKIPPING OPTIONAL DEPENDENCY: abbrev@1.1.0 (node_modules/nativescript/node_modules/fsevents/node_modules/abbrev): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/usr/local/lib/node_modules/nativescript/node_modules/fsevents/node_modules/abbrev' -> '/usr/local/lib/node_modules/nativescript/node_modules/fsevents/node_modules/.abbrev.DELETE' |
対処法はこちらのコードを実行することで解消できます
1 2 3 | $ sudo rm -rf /usr/local/lib/node_modules/nativescript $ npm install -g nativescript |
参考にした記事
What is causing this nativescript installation error on Macbook Pro