vue.jsにてvue-cliを使用したく
% vue init webpack sample-vueを実行した所
以下のエラーメッセージが出ました。
⠋ downloading template
/usr/local/lib/node_modules/@vue/cli-init/node_modules/rimraf/rimraf.js:321
throw er
^
Error: EACCES: permission denied, unlink '/Users/saek/.vue-templates/webpack/.gitignore'
at Object.unlinkSync (fs.js:1052:3)
at rimrafSync (/usr/local/lib/node_modules/@vue/cli-init/node_modules/rimraf/rimraf.js:314:17)
at /usr/local/lib/node_modules/@vue/cli-init/node_modules/rimraf/rimraf.js:350:5
at Array.forEach (<anonymous>)
at rmkidsSync (/usr/local/lib/node_modules/@vue/cli-init/node_modules/rimraf/rimraf.js:349:26)
at rmdirSync (/usr/local/lib/node_modules/@vue/cli-init/node_modules/rimraf/rimraf.js:342:7)
at rimrafSync (/usr/local/lib/node_modules/@vue/cli-init/node_modules/rimraf/rimraf.js:312:9)
at downloadAndGenerate (/usr/local/lib/node_modules/@vue/cli-init/node_modules/vue-cli/bin/vue-init:149:20)
at /usr/local/lib/node_modules/@vue/cli-init/node_modules/vue-cli/bin/vue-init:130:11
at Request._callback (/usr/local/lib/node_modules/@vue/cli-init/node_modules/vue-cli/lib/check-version.js:29:5)
at Request.self.callback (/usr/local/lib/node_modules/@vue/cli-init/node_modules/request/request.js:185:22)
at Request.emit (events.js:311:20)
at Request.<anonymous> (/usr/local/lib/node_modules/@vue/cli-init/node_modules/request/request.js:1154:10)
at Request.emit (events.js:311:20)
at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/@vue/cli-init/node_modules/request/request.js:1076:12)
at Object.onceWrapper (events.js:417:28) {
errno: -13,
syscall: 'unlink',
code: 'EACCES',
path: '/Users/saek/.vue-templates/webpack/.gitignore'
}
権限の問題かと思いこちらの記事を参考にしてみたりもしましたが思うような
結果が得られないよう状態です。
https://qiita.com/okohs/items/ced3c3de30af1035242d
私自身まだ知識不足でありますが
もし分かる方がいらっしゃいましたら宜しくお願い致します。
回答1件
あなたの回答
tips
プレビュー