I have installed titanium in ubuntu 12.10. However as I try to install updates for Titanium CLI, Node.ACS and Alloy, I received the following errors:
Failed to get value of npm config key prefix: npm ERR! Error: EACCES, mkdir '/home/ralf/Titanium_Studio/[sudo] password for ralf: /home/ralf/Titanium_Studio/[sudo] password for ralf: /home/ralf/Titanium_Studio/[sudo] password for ralf: /home/ralf/Titanium_Studio'
npm ERR! { [Error: EACCES, mkdir '/home/ralf/Titanium_Studio/[sudo] password for ralf: /home/ralf/Titanium_Studio/[sudo] password for ralf: /home/ralf/Titanium_Studio/[sudo] password for ralf: /home/ralf/Titanium_Studio']
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '/home/ralf/Titanium_Studio/[sudo] password for ralf: /home/ralf/Titanium_Studio/[sudo] password for ralf: /home/ralf/Titanium_Studio/[sudo] password for ralf: /home/ralf/Titanium_Studio' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Linux 3.5.0-51-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "config" "get" "prefix"
npm ERR! cwd /home/ralf/Titanium_Studio
npm ERR! node -v v0.10.28
npm ERR! npm -v 1.4.9
npm ERR! path /home/ralf/Titanium_Studio/[sudo] password for ralf: /home/ralf/Titanium_Studio/[sudo] password for ralf: /home/ralf/Titanium_Studio/[sudo] password for ralf: /home/ralf/Titanium_Studio
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, mkdir '/home/ralf/Titanium_Studio/[sudo] password for ralf: /home/ralf/Titanium_Studio/[sudo] password for ralf: /home/ralf/Titanium_Studio/[sudo] password for ralf: /home/ralf/Titanium_Studio'
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/ralf/Titanium_Studio/npm-debug.log
npm ERR! not ok code 0
What does this mean? How can I fix this issue?
Run the titanium studio app through this in the command line
sudo ./TitaniumStudio
instead of clicking the file in its folder.
Related
I am trying to install browserStac using he following command:
npm install -g browserstack-cypress-cli
I Got the following error message:
npm ERR! code EACCES
npm ERR! syscall mkdir
npm ERR! path /usr/local/lib/node_modules/browserstack-cypress-cli
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/browserstack-cypress-cli'
npm ERR! [Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/browserstack-cypress-cli'] {
➜ RHS.Website.Automation git:(regression)
npm install -g browserstack-cypress-cli
npm ERR! code EACCES
npm ERR! syscall mkdir
npm ERR! path /usr/local/lib/node_modules/browserstack-cypress-cli
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/browserstack-cypress-cli'
npm ERR! [Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/browserstack-cypress-cli'] {
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'mkdir',
npm ERR! path: '/usr/local/lib/node_modules/browserstack-cypress-cli'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/jacquelinegeorge/.npm/_logs/2022-12-13T12_31_56_083Z-debug-0.log
➜ RHS.Website.Automation git:(regression)
I'm honestly very confused right because this should this framework is new and I've attempted to install cypress before.
What is wrong exactly and and how do I fix it.
Seems like a permission issue.
You should be using:
sudo npm install -g browserstack-cypress-cli
I tried to run npm install -g #sanity/cli commend to use Sanity but my return is this..
npm ERR! code EACCES
npm ERR! syscall symlink
npm ERR! path ../lib/node_modules/#sanity/cli/bin/sanity
npm ERR! dest /usr/local/bin/sanity
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, symlink '../lib/node_modules/#sanity/cli/bin/sanity' -> '/usr/local/bin/sanity'
npm ERR! [Error: EACCES: permission denied, symlink '../lib/node_modules/#sanity/cli/bin/sanity' -> '/usr/local/bin/sanity'] {
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'symlink',
npm ERR! path: '../lib/node_modules/#sanity/cli/bin/sanity',
npm ERR! dest: '/usr/local/bin/sanity'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/kevinsong/.npm/_logs/2022-07-27T17_49_06_969Z-debug-0.log
npm -v 8.13.2
What need to be done to run the npm install -g #sanity/cli?
when I do vi /usr/local/bin, I see this
node*
corepack# --> /usr/local/lib/node_modules/corepack/dist/corepack.js
npm# --> /usr/local/lib/node_modules/npm/bin/npm-cli.js
npx# --> /usr/local/lib/node_modules/npm/bin/npx-cli.js
~
It's because your current user doesn't have the permission
you can check the permission
ls -la /usr/local/lib/node_modules
get the permission for sudo access
sudo chown -R $USER /usr/local/lib/node_modules/
Now try with
sudo npm install -g #sanity/cli
Click HERE for more
I am trying to install JSON-Server, but it's not working!
I have used the following command: npm install -g json-server
Here is the error message:
npm ERR! code EACCES
npm ERR! syscall mkdir
npm ERR! path /usr/local/lib/node_modules/json-server
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/json-server'
npm ERR! [Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/json-server'] {
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'mkdir',
npm ERR! path: '/usr/local/lib/node_modules/json-server'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.
Try to use sudo before command :
sudo npm install -g json-server
$ npm install -g npm#latest
/usr/local/bin/npm -> /usr/local/lib/node_modules/npm/bin/npm-cli.js\
/usr/local/bin/npx -> /usr/local/lib/node_modules/npm/bin/npx-cli.js\
npm ERR! code EACCES\
npm ERR! syscall mkdir\
npm ERR! path /usr/local/share/man/man1\
npm ERR! errno -13\
npm ERR! Error: EACCES: permission denied, mkdir '/usr/local/share/man/man1'\
npm ERR! { [Error: EACCES: permission denied, mkdir '/usr/local/share/man/man1']\
npm ERR! cause:\
npm ERR! { Error: EACCES: permission denied, mkdir '/usr/local/share/man/man1'\
npm ERR! errno: -13,\
npm ERR! code: 'EACCES',\
npm ERR! syscall: 'mkdir',\
npm ERR! path: '/usr/local/share/man/man1' },\
npm ERR! stack:
npm ERR! 'Error: EACCES: permission denied, mkdir \'/usr/local/share/man/man1\'',\
npm ERR! errno: -13,\
npm ERR! code: 'EACCES',\
npm ERR! syscall: 'mkdir',\
npm ERR! path: '/usr/local/share/man/man1' }\
npm ERR! \
npm ERR! The operation was rejected by your operating system.\
npm ERR! It is likely you do not have the permissions to access this file as the current user\
npm ERR!\
npm ERR! If you believe this might be a permissions issue, please double-check the\
npm ERR! permissions of the file and its containing directories, or try running\
npm ERR! the command again as root/Administrator.
npm ERR! A complete log of this run can be found in:\
npm ERR! /home/katha/.npm/_logs/2021-05-13T12_20_16_050Z-debug.log
I get this error when I run the command "npm install -g yo bower grunt-cli gulp".
Does any one know what the problem is?
npm ERR! tar.unpack untar error /Users/??????/.npm/grunt-cli/0.1.13/package.tgz
npm ERR! tar.unpack untar error /Users/??????/.npm/yo/1.4.7/package.tgz
npm ERR! tar.unpack untar error /Users/??????/.npm/gulp/3.9.0/package.tgz
npm ERR! tar.unpack untar error /Users/??????/.npm/bower/1.4.1/package.tgz
npm ERR! Darwin 14.3.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "-g" "yo" "bower" "grunt-cli"
"gulp"
npm ERR! node v0.12.4
npm ERR! npm v2.10.1
npm ERR! path /usr/local/lib/node_modules/grunt-cli
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! Error: EACCES, mkdir '/usr/local/lib/node_modules/grunt-cli'
npm ERR! at Error (native)
npm ERR! { [Error: EACCES, mkdir '/usr/local/lib/node_modules/grunt-cli']
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! path: '/usr/local/lib/node_modules/grunt-cli',
npm ERR! fstream_type: 'Directory',
npm ERR! fstream_path: '/usr/local/lib/node_modules/grunt-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:95: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/??????/npm-debug.log
As Vohuman pointed out, running this as sudo would fix it. You're trying to install the packages globally which requires access to /usr/local which you don't have write privileges to, so as the error message says, please try running this command again as root/Administrator.
Even "logged in" as root (sudo su) [ On CentOS ]
sudo npm install -g ...
Otherwise was still executing as user, possibly the directory owner?