欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

sudo npm install fecs -g 报错

程序员文章站 2022-05-30 15:13:38
...
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
/usr/local/bin/fecs -> /usr/local/lib/node_modules/fecs/bin/fecs

> [email protected] postinstall /usr/local/lib/node_modules/fecs
> node scripts/install.js --allow-root

inject eslint.js...
fs.js:766
  return binding.rename(pathModule._makeLong(oldPath),
                 ^

Error: EACCES: permission denied, rename '/usr/local/lib/node_modules/fecs/node_modules/eslint/lib/linter.js' -> '/usr/local/lib/node_modules/fecs/node_modules/eslint/lib/linter.js.bak'
    at Object.fs.renameSync (fs.js:766:18)
    at Object.<anonymous> (/usr/local/lib/node_modules/fecs/scripts/install.js:20:8)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Function.Module.runMain (module.js:693:10)
    at startup (bootstrap_node.js:188:16)
    at bootstrap_node.js:609:3

npm config set unsafe-perm=true