我正在尝试使用以下指南在我的ubuntu 16.04上安装mean.js.而且我一直陷入咕噜咕噜的阶段。
构建节点存在问题,因此我使用nvm
进行安装然后是凉亭的问题,这个过程被杀死了。管理通过添加交换来解决这个问题。我有512 MB RAM设置。
https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-ubuntu-14-04
现在我的问题是咕噜咕噜。我现在有这个错误。
/opt/mean$ grunt
A valid Gruntfile could not be found. Please see the getting started guide for more information on how to configure grunt:\http://gruntjs.com/getting-started
Fatal error: Unable to find Gruntfile.
然后当我尝试
时 /opt/mean$ npm install
npm WARN checkPermissions Missing write access to /opt/mean/nodemodules/tiny-lr/nodemodules
npm WARN checkPermissions Missing write access to /opt/mean/nodemodules/tiny-lr/nodemodules/body-parser/nodemodules
npm WARN checkPermissions Missing write access to /opt/mean/nodemodules/tiny-lr/nodemodules/raw-body/nodemodules
npm WARN eslint-config-airbnb@6.0.2 requires a peer of eslint-plugin-react@^4.0.0 but none was installed.
npm ERR! path /opt/mean/nodemodules/tiny-lr/nodemodules
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access '/opt/mean/nodemodules/tiny-lr/nodemodules'
npm ERR! at Error (native)
npm ERR! { Error: EACCES: permission denied, access '/opt/mean/nodemodules/tiny-lr/nodemodules'
npm ERR! at Error (native)
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path: '/opt/mean/nodemodules/tiny-lr/nodemodules' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/ktyc/.npm/logs/2017-06-17T084313072Z-debug.log
这是我的第二次尝试。
如果有人需要我编辑问题或需要更多信息,请留言。