安装 Ghost EACCES 报错
Installing Ghost EACCES error
我正在尝试安装 ghost,但在构建 Bookshelf.js 时显示此错误:
Installing dependencies
npm ERR! Error: EACCES: permission denied, mkdir '/root/.npm/babel-cli/6.18.0/package'
sudo npm install -g ghost --allow-root
我用这个解决了:
sudo npm install -g --unsafe-perm ghost --allow-root
npm config set prefix ~/npm
export PATH="$PATH:$HOME/npm/bin"
我正在尝试安装 ghost,但在构建 Bookshelf.js 时显示此错误:
Installing dependencies npm ERR! Error: EACCES: permission denied, mkdir '/root/.npm/babel-cli/6.18.0/package'
sudo npm install -g ghost --allow-root
我用这个解决了:
sudo npm install -g --unsafe-perm ghost --allow-root
npm config set prefix ~/npm
export PATH="$PATH:$HOME/npm/bin"