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

Issue installing on OS X #253

Closed
neauoire opened this issue Dec 24, 2015 · 2 comments
Closed

Issue installing on OS X #253

neauoire opened this issue Dec 24, 2015 · 2 comments

Comments

@neauoire
Copy link

Typing npm install -g particle-cli
OS X 10.11.3 Beta (15D9c)

npm ERR! tar.unpack untar error /Users/VillaMoirai/.npm/particle-cli/1.8.22/package.tgz
npm ERR! Darwin 15.3.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "particle-cli"
npm ERR! node v4.2.4
npm ERR! npm  v2.14.12
npm ERR! path /usr/local/lib/node_modules/particle-cli
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall mkdir

npm ERR! Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/particle-cli'
npm ERR!     at Error (native)
npm ERR!  { [Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/particle-cli']
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'mkdir',
npm ERR!   path: '/usr/local/lib/node_modules/particle-cli',
npm ERR!   fstream_type: 'Directory',
npm ERR!   fstream_path: '/usr/local/lib/node_modules/particle-cli',
npm ERR!   fstream_class: 'DirWriter',
npm ERR!   fstream_stack: 
npm ERR!    [ '/usr/local/lib/node_modules/npm/node_modules/fstream/lib/dir-writer.js:35:25',
npm ERR!      '/usr/local/lib/node_modules/npm/node_modules/mkdirp/index.js:47:53',
npm ERR!      'FSReqWrap.oncomplete (fs.js:82:15)' ] }
npm ERR! 
npm ERR! Please try running this command again as root/Administrator.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/VillaMoirai/npm-debug.log
@kennethlimcp
Copy link
Contributor

It was stated in the docs: https://docs.particle.io/guide/tools-and-features/cli/#installing

If you experience permission errors, you have two options: change the permission to npm's default 
directory or change npm's default directory to another directory (preferred choice on a multiuser 
environment). Both options are documented here.

For reference: https://docs.npmjs.com/getting-started/fixing-npm-permissions

@neauoire
Copy link
Author

I'd recommend adding this url as part of the getting started url.
https://docs.particle.io/guide/getting-started/connect/core/#using-osx

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