Nativescriptをインストールし直そうとしたら、以下のエラーが出てきました

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'

対処法はこちらのコードを実行することで解消できます

$ sudo rm -rf /usr/local/lib/node_modules/nativescript

$ npm install -g nativescript 

参考にした記事

What is causing this nativescript installation error on Macbook Pro

コメントをどうぞ

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です

CAPTCHA