permissions prevent `npm rebuild`
See original GitHub issueIโve reproduced this in a git checkout, and by installing from npm.
In github, just checkout master, npm install
, and npm rebuild
, the rebuild fails with:
> ibm_db@2.0.0 install /private/tmp/node_modules/ibm_db
> node installer/driverInstall.js
Downloading DB2 ODBC CLI Driver from https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/macos64_odbc_cli.tar.gz...
100.00% | 20080158 bytes downloaded out of 20080158 bytes.{ Error: EACCES: permission denied, open '/private/tmp/node_modules/ibm_db/installer/clidriver/msg/en_US.iso88591/db2adm.mo'
errno: -13,
code: 'EACCES',
syscall: 'open',
path: '/private/tmp/node_modules/ibm_db/installer/clidriver/msg/en_US.iso88591/db2adm.mo' }
npm ERR! Darwin 16.6.0
npm ERR! argv "/Users/sam/.nvm/versions/node/v7.9.0/bin/node" "/Users/sam/.nvm/versions/node/v7.9.0/bin/npm" "rebuild"
npm ERR! node v7.9.0
npm ERR! npm v4.2.0
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ibm_db@2.0.0 install: `node installer/driverInstall.js`
npm ERR! Exit status 1
I believe it is because all the .mo files are read-only:
/tmp % ls -l /Users/sam/w/ibm/node-ibm_db/installer/clidriver/msg/en_US.iso88591
total 9296
drwxr-xr-x 19 sam staff 646 23 Feb 03:42 ./
drwxr-xr-x 3 sam staff 102 23 Feb 03:56 ../
-r--r--r-- 1 sam staff 107882 23 Feb 03:42 db2adm.mo
-r--r--r-- 1 sam staff 255496 23 Feb 03:42 db2admh.mo
-r--r--r-- 1 sam staff 5390 23 Feb 03:42 db2caem.mo
....
That might be a problem in the zip or tar file they were extracted from.
Issue Analytics
- State:
- Created 6 years ago
- Comments:28 (13 by maintainers)
Top Results From Across the Web
Resolving EACCES permissions errors when installing ...
This is the best way to avoid permissions issues. To reinstall npm with a node version manager, follow the steps in "Downloading and...
Read more >20 - How to prevent permissions errors | npm Documentation
This is the best way to avoid permissions issues. This is described in Chapter 2. You do not need to remove your current...
Read more >How to fix npm throwing error without sudo - node.js
This looks like a permissions issue in your home directory. To reclaim ownership of the .npm directory execute: sudo chown -R $(whoami) ~/.npm....
Read more >npm package permissions โ an idea - Medium
Option 1: an npm package to enforce securityโโ Let's call it @npm/permissions . You would include this @npm/permissions package as the firstย ...
Read more >Rebuilding node access permissions - Acquia Support
Drupal includes the node_access_rebuild function, which includes a variable to batch the requests. This helps prevent server overloading. Youย ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Worked for me!
@rhtpandeyIN You have tried what I am doing and canโt reproduce what I am sseeing? Following is complete reproduction example, the only thing it is missing is the initial git clone, but you can see the remote that I cloned:
I havenโt read the install script, and have no idea what it is doing, or what could be causing this.