Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yo cannot be ran as root or using sudo #226

Open
orenyny opened this issue Jun 7, 2016 · 1 comment
Open

Yo cannot be ran as root or using sudo #226

orenyny opened this issue Jun 7, 2016 · 1 comment

Comments

@orenyny
Copy link

orenyny commented Jun 7, 2016

Hello,
I hope this is the right place to ask you to correct the documentation. In this page - http://meanjs.org/generator.html you explain that super user or sudo may be needed to do the installation.
There is a major issue using yo as root or using sudo. I followed their suggestions here yeoman/yeoman.io#282, switching between root and a user, with no success.
Here are the errors about deprecated packages which eventually fails the process:

Running npm install for you....
This may take a couple minutes.
Error: Command failed: cd meanjs && npm install
npm WARN deprecated [email protected]: Package renamed to phantomjs-prebuilt. Please update 'phantomjs' package references to 'phantomjs-prebuilt'
npm WARN deprecated [email protected]: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
npm WARN deprecated [email protected]: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated [email protected]: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
npm WARN deprecated [email protected]: lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^4.0.0.
npm WARN deprecated [email protected]: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
npm WARN deprecated [email protected]: cross-spawn no longer requires a build toolchain, use it instead!
Killed

at ChildProcess.exithandler (child_process.js:207:12)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:852:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)
@codydaig
Copy link
Member

codydaig commented Jun 7, 2016

Those are errors about deprecated packages. The Killed at the end is the only issue here. Typically that means that you ran out of memory or something. Are you trying to do this on a VM?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants