首頁  >  問答  >  主體

angular.js - 用yeoman安裝angular報錯

用yo安裝angular的時候出現了這樣的錯誤?

/usr/local/lib/node_modules/yo/node_modules/configstore/index.js:46
                                throw err;
                                      ^
Error: EACCES, permission denied '/root/.config/configstore/insight-yo.json'
You don't have access to this file.

    at Error (native)
    at Object.fs.openSync (fs.js:500:18)
    at Object.fs.readFileSync (fs.js:352:15)
    at Object.create.all.get (/usr/local/lib/node_modules/yo/node_modules/configstore/index.js:27:26)
    at Object.Configstore (/usr/local/lib/node_modules/yo/node_modules/configstore/index.js:20:44)
    at new Insight (/usr/local/lib/node_modules/yo/node_modules/insight/lib/index.js:37:34)
    at Object.<anonymous> (/usr/local/lib/node_modules/yo/lib/cli.js:130:15)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)

習慣沉默習慣沉默2714 天前468

全部回覆(1)我來回復

  • PHP中文网

    PHP中文网2017-05-15 16:56:15

    這個問題我遇過
    1. 為該目錄/檔案新增你正在使用的群組使用者權限,STFG
    2. 別用root使用者安裝

    回覆
    0
  • 取消回覆