npm install -g @ vue / cli @ vue / cli-initエラー

ミッドナイトクラバー

NativeScriptのセットアップで忙しく、Vue.jsサポートも追加しています。さて、インストール時にこのエラーが発生します。--unsafe-permを使用する必要がありますか、それともこれを行うためのより良い方法がありますか?

npm install -g @vue/cli @vue/cli-init
npm WARN deprecated [email protected]: This package has been deprecated in favour of @vue/cli
npm WARN deprecated [email protected]: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
/usr/local/bin/vue -> /usr/local/lib/node_modules/@vue/cli/bin/vue.js

> [email protected] install /usr/local/lib/node_modules/@vue/cli/node_modules/fsevents
> node install

node-pre-gyp WARN Using request for node-pre-gyp https download 
node-pre-gyp WARN Pre-built binaries not installable for [email protected] and [email protected] (node-v64 ABI, unknown) (falling back to source compile with node-gyp) 
node-pre-gyp WARN Hit error EACCES: permission denied, mkdir '/usr/local/lib/node_modules/@vue/cli/node_modules/fsevents/lib' 
gyp WARN install got an error, rolling back install
gyp ERR! configure error 
gyp ERR! stack Error: EPERM: operation not permitted, utime '/Users/chris/.node-gyp/10.16.0'
gyp ERR! System Darwin 18.7.0
gyp ERR! command "/usr/local/Cellar/node@10/10.16.0/bin/node" "/usr/local/Cellar/node@10/10.16.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/usr/local/lib/node_modules/@vue/cli/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node" "--module_name=fse" "--module_path=/usr/local/lib/node_modules/@vue/cli/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64" "--napi_version=4" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v64"
gyp ERR! cwd /usr/local/lib/node_modules/@vue/cli/node_modules/fsevents
gyp ERR! node -v v10.16.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok 
node-pre-gyp ERR! build error 
node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/Cellar/node@10/10.16.0/bin/node /usr/local/Cellar/node@10/10.16.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/usr/local/lib/node_modules/@vue/cli/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node --module_name=fse --module_path=/usr/local/lib/node_modules/@vue/cli/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64 --napi_version=4 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v64' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/@vue/cli/node_modules/fsevents/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:982:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
node-pre-gyp ERR! System Darwin 18.7.0
node-pre-gyp ERR! command "/usr/local/Cellar/node@10/10.16.0/bin/node" "/usr/local/lib/node_modules/@vue/cli/node_modules/fsevents/node_modules/node-pre-gyp/bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /usr/local/lib/node_modules/@vue/cli/node_modules/fsevents
node-pre-gyp ERR! node -v v10.16.0
node-pre-gyp ERR! node-pre-gyp -v v0.12.0
node-pre-gyp ERR! not ok 
Failed to execute '/usr/local/Cellar/node@10/10.16.0/bin/node /usr/local/Cellar/node@10/10.16.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/usr/local/lib/node_modules/@vue/cli/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node --module_name=fse --module_path=/usr/local/lib/node_modules/@vue/cli/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64 --napi_version=4 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v64' (1)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/@vue/cli/node_modules/fsevents):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: `node install`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

+ @vue/[email protected]
+ @vue/[email protected]
updated 2 packages in 42.488s
itcon

あなたはこの問題を解決することができます--unsafe-permnpm install -g @vue/cli @vue/cli-init --unsafe-perm

参照。https://github.com/mapbox/node-pre-gyp/issues/439#issuecomment-462821780

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

npm install -g @ angular / cliが構文エラーで失敗する

分類Dev

Windows 10でのnpmインストールエラー(npm install -g angle-cli)

分類Dev

npm install -g not working while uninstalling react-native-cli?

分類Dev

Vue - Vue CLI - API Variables

分類Dev

'sudo npm install -g @ angular / cli'のインストール中に、ubuntuでエラーが発生します

分類Dev

npm install-gでturtle-cliをインストールできません

分類Dev

Deactivating jest warnings in a @vue/cli (vue-cli) project?

分類Dev

Vue CLI build to external host?

分類Dev

Vue-cli-3 "npm run build / watch":WordPressテーマに同じoutputDirが必要です

分類Dev

vueファイル+ vue cli + npmの開発名は何ですか

分類Dev

Vue.js CLIの複数ページ

分類Dev

ノードを使用したVue-cli

分類Dev

Angularプロジェクトをインストールできません:npm install -g @ angular / cli

分類Dev

IE11 + Vue-Cli + Webpack + Babel-SCRIPT1003エラー

分類Dev

Vue CLI 3vue.config.jsコンパイル「不明な単語」エラー

分類Dev

Vue Cli 3: defined output paths

分類Dev

Vue cli delete the outputDir folder during serve

分類Dev

Contenu "index.html" de Vue CLI

分類Dev

Vue cli Build Production Change opacity in css

分類Dev

Vue CLI dynamic import from project module

分類Dev

Weird CORS errors on fresh vue cli project

分類Dev

vue-cliなしのVue、Expressサーバーで実行

分類Dev

npmの問題の無限ループのため、vue-cliをインストールできません

分類Dev

$ sudo npm install -gmean-cliを使用するとエラーが発生します

分類Dev

「vue-cli-servicetest:unit」は正常に実行されます。しかし、npmはエラーコード1ELIFECYCLEを終了します

分類Dev

Vue CLI 3アプリ:NPMビルドでキャッチされないSyntaxError

分類Dev

モジュール 'cli-cursor'vue-cliが見つかりません

分類Dev

vue CLI3のコーヒーラング

分類Dev

vue-cli init 時の発行者証明書発行

Related 関連記事

  1. 1

    npm install -g @ angular / cliが構文エラーで失敗する

  2. 2

    Windows 10でのnpmインストールエラー(npm install -g angle-cli)

  3. 3

    npm install -g not working while uninstalling react-native-cli?

  4. 4

    Vue - Vue CLI - API Variables

  5. 5

    'sudo npm install -g @ angular / cli'のインストール中に、ubuntuでエラーが発生します

  6. 6

    npm install-gでturtle-cliをインストールできません

  7. 7

    Deactivating jest warnings in a @vue/cli (vue-cli) project?

  8. 8

    Vue CLI build to external host?

  9. 9

    Vue-cli-3 "npm run build / watch":WordPressテーマに同じoutputDirが必要です

  10. 10

    vueファイル+ vue cli + npmの開発名は何ですか

  11. 11

    Vue.js CLIの複数ページ

  12. 12

    ノードを使用したVue-cli

  13. 13

    Angularプロジェクトをインストールできません:npm install -g @ angular / cli

  14. 14

    IE11 + Vue-Cli + Webpack + Babel-SCRIPT1003エラー

  15. 15

    Vue CLI 3vue.config.jsコンパイル「不明な単語」エラー

  16. 16

    Vue Cli 3: defined output paths

  17. 17

    Vue cli delete the outputDir folder during serve

  18. 18

    Contenu "index.html" de Vue CLI

  19. 19

    Vue cli Build Production Change opacity in css

  20. 20

    Vue CLI dynamic import from project module

  21. 21

    Weird CORS errors on fresh vue cli project

  22. 22

    vue-cliなしのVue、Expressサーバーで実行

  23. 23

    npmの問題の無限ループのため、vue-cliをインストールできません

  24. 24

    $ sudo npm install -gmean-cliを使用するとエラーが発生します

  25. 25

    「vue-cli-servicetest:unit」は正常に実行されます。しかし、npmはエラーコード1ELIFECYCLEを終了します

  26. 26

    Vue CLI 3アプリ:NPMビルドでキャッチされないSyntaxError

  27. 27

    モジュール 'cli-cursor'vue-cliが見つかりません

  28. 28

    vue CLI3のコーヒーラング

  29. 29

    vue-cli init 時の発行者証明書発行

ホットタグ

アーカイブ