npmのインストールができなくなっています。
原因追求の方法がわからないため、ご存知の方は情報よろしくお願いします。
bash
1$ npm -v 26.4.1 3 4$ node -v 5v8.11.3 6 7 8$ ls /Users/(ユーザ名)/.npm-global/lib/node_modules 9@google-cloud firebase-tools hoek jshint yarn 10 11$ ls /Users/(ユーザ名)/.npm-global/bin 12functions jshint yarn 13firebase functions-emulator yarnpkg 14 15$ sudo npm i -g vue 16+ vue@2.5.20 17added 1 package from 1 contributor in 3.374s 18 19$ vue --version 20bash: vue: command not found 21 22$ ls /Users/(ユーザ名)/.npm-global/lib/node_modules 23@google-cloud firebase-tools hoek jshint vue yarn 24 25$ ls /Users/(ユーザ名)/.npm-global/bin 26functions jshint yarn 27firebase functions-emulator yarnpkg
インストールの処理は正常に走っているのですが、
bash
1bash: vue: command not found
が表示されます。
これはなぜでしょうか?
何か確認することなどあればご連絡おねがいします。
追記
解答でアドバイスいただいたコマンド結果を記載いたします。
bash
1$ npm install -g @vue/cli 2npm WARN deprecated hoek@5.0.4: This version is no longer maintained. Please upgrade to the latest version. 3npm WARN deprecated cross-spawn-async@2.2.5: cross-spawn no longer requires a build toolchain, use it instead 4/Users/(ユーザ名)/.npm-global/bin/vue -> /Users/(ユーザ名)/.npm-global/lib/node_modules/@vue/cli/bin/vue.js 5 6> fsevents@1.2.4 install /Users/(ユーザ名)/.npm-global/lib/node_modules/@vue/cli/node_modules/fsevents 7> node install 8 9[fsevents] Success: "/Users/(ユーザ名)/.npm-global/lib/node_modules/@vue/cli/node_modules/fsevents/lib/binding/Release/node-v57-darwin- 10x64/fse.node" already installed 11Pass --update-binary to reinstall or --build-from-source to recompile 12 13> protobufjs@6.8.8 postinstall /Users/(ユーザ名)/.npm-global/lib/node_modules/@vue/cli/node_modules/protobufjs 14> node scripts/postinstall 15 16 17> nodemon@1.18.8 postinstall /Users/(ユーザ名)/.npm-global/lib/node_modules/@vue/cli/node_modules/nodemon 18> node bin/postinstall || exit 0 19 20npm WARN @apollographql/apollo-upload-server@5.0.3 requires a peer of graphql@^0.13.1 but none is installed. You must install peer de 21pendencies yourself. 22 23+ @vue/cli@3.2.1 24added 738 packages from 515 contributors in 65.971s 25 26$ vue --version 27bash: vue: command not found 28 29$ ls /Users/(ユーザ名)/.npm-global/lib/node_modules 30@google-cloud @vue firebase-tools hoek jshint mocha vue yarn 31 32$ ls /Users/(ユーザ名)/.npm-global/bin 33functions jshint vue yarnpkg 34firebase functions-emulator yarn
コメント欄で教えていただいた、参考URLをみてPATHコマンドを打った結果
bash
1 2$ echo $PATH 3/Library/Frameworks/Python.framework/Versions/3.6/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Frameworks/Mono.framework 4/Versions/Current/Commands:/Library/Frameworks/Python.framework/Versions/3.6/bin:/Users/denis/.npm-global/bin 5 6$ vue --version 7bash: vue: command not found
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。