前提・実現したいこと
WordPressのUnderstrapというテーマを
Gulpでカスタマイズしたいと考えています。
参考にしたもの↓
- UnderStrap Documentation
- WordPressのテーマ「UnderStrap」のカスタマイズや使い方などの覚書 KEN-G.COM
- npm intallしたときに脆弱性チェックでエラーが発生した
- Gulpのインストール時のエラー内容と解決策まとめ
バージョンなど
- node v8.12.0
- npm 6.4.1
実行結果
nodeはここからインストールしました。
$ npm install --grobal gulp-cli + gulp-cli@2.0.1 updated 1 package and audited 17856 packages in 7.871s found 12 vulnerabilities (2 low, 6 moderate, 4 high) run `npm audit fix` to fix them, or `npm audit` for details $ npm install -g browser-sync /Users/mymac/.npm-global/bin/browser-sync -> /Users/mymac/.npm-global/lib/node_modules/browser-sync/dist/bin.js + browser-sync@2.24.7 updated 1 package in 7.914s $ cd /Applications/MAMP/htdocs/test/wp-content/themes/understrap $ npm install > understrap@0.8.7 postinstall /Applications/MAMP/htdocs/test/wp-content/themes/understrap > gulp copy-assets [02:51:42] Using gulpfile /Applications/MAMP/htdocs/test/wp-content/themes/understrap/gulpfile.js [02:51:42] Starting 'copy-assets'... [02:51:42] Finished 'copy-assets' after 8.88 ms audited 17856 packages in 9.504s found 12 vulnerabilities (2 low, 6 moderate, 4 high) run `npm audit fix` to fix them, or `npm audit` for details $ gulp copy-assets -bash: gulp: command not found
試したこと
npm audit fix
と出たので調べてみたところ、
脆弱性チェックでエラーが発生したということでしたので上記記事を参考に直しました。
ですが未だに
updated 1 package, moved 1 package and audited 23291 packages in 8.938s found 6 moderate severity vulnerabilities run `npm audit fix` to fix them, or `npm audit` for details
と表示されます。
権限周りのエラーも出たので、権限を与えましたがエラーが出ます。
$ sudo npm audit fix up to date in 5.363s fixed 0 of 6 vulnerabilities in 23291 scanned packages 6 vulnerabilities required manual review and could not be updated MacBook-Pro:understrap $ sudo npm install npm WARN lifecycle understrap@0.8.7~postinstall: cannot run in wd understrap@0.8.7 gulp copy-assets (wd=/Applications/MAMP/htdocs/test/wp-content/themes/understrap) audited 23291 packages in 7.078s found 6 moderate severity vulnerabilities run `npm audit fix` to fix them, or `npm audit` for details MacBook-Pro:understrap $
何をすれば良いのかもお手上げです…
すみません、どうかご教授頂けないでしょうか
よろしくお願いいたします。
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。