Git Product home page Git Product logo

Comments (3)

leoj3n avatar leoj3n commented on June 15, 2024

After kitchenplan provision of npm stuff, I get the following error using npm like normal:

npm WARN locking Error: EACCES, open '/Users/leoj/.npm/_locks/gh-9bb79f4fcdb3cab7.lock'
npm WARN locking     at Error (native)
npm WARN locking  /Users/leoj/.npm/_locks/gh-9bb79f4fcdb3cab7.lock failed { [Error: EACCES, open '/Users/leoj/.npm/_locks/gh-9bb79f4fcdb3cab7.lock']
npm WARN locking   errno: -13,
npm WARN locking   code: 'EACCES',
npm WARN locking   path: '/Users/leoj/.npm/_locks/gh-9bb79f4fcdb3cab7.lock' }
npm ERR! Darwin 14.4.0
npm ERR! argv "/Users/leoj/.nvm/versions/node/v0.12.6/bin/node" "/Users/leoj/.nvm/versions/node/v0.12.6/bin/npm" "install"
npm ERR! node v0.12.6
npm ERR! npm  v2.11.2

npm ERR! Attempt to unlock /Users/leoj/.homesick/repos/dotfiles/node_modules/gh, which hasn't been locked
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

To fix this I had to do:

sudo mv /Users/leoj/.npm/_locks /Users/leoj/.Trash

I'm guessing this has something to do with kitchenplan using sudo with npm.

OS X: 10.10.4
node: v0.12.6
npm: 2.11.2

from kitchenplan.

leoj3n avatar leoj3n commented on June 15, 2024

Additionally with kitchenplan-installed npm packages, I cannot update the package without sudo:

~ ❯❯❯ npm install -g cordova
npm ERR! Darwin 14.4.0
npm ERR! argv "/Users/leoj/.nvm/versions/node/v0.12.6/bin/node" "/Users/leoj/.nvm/versions/node/v0.12.6/bin/npm" "install" "-g" "cordova"
npm ERR! node v0.12.6
npm ERR! npm  v2.11.2
npm ERR! path /Users/leoj/.nvm/versions/node/v0.12.6/lib/node_modules/cordova/.npmignore
npm ERR! code EACCES
npm ERR! errno -13

npm ERR! Error: EACCES, unlink '/Users/leoj/.nvm/versions/node/v0.12.6/lib/node_modules/cordova/.npmignore'
npm ERR!     at Error (native)
npm ERR!  { [Error: EACCES, unlink '/Users/leoj/.nvm/versions/node/v0.12.6/lib/node_modules/cordova/.npmignore']
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   path: '/Users/leoj/.nvm/versions/node/v0.12.6/lib/node_modules/cordova/.npmignore' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! error rolling back Error: EACCES, unlink '/Users/leoj/.nvm/versions/node/v0.12.6/lib/node_modules/cordova/.npmignore'
npm ERR! error rolling back     at Error (native)
npm ERR! error rolling back  { [Error: EACCES, unlink '/Users/leoj/.nvm/versions/node/v0.12.6/lib/node_modules/cordova/.npmignore']
npm ERR! error rolling back   errno: -13,
npm ERR! error rolling back   code: 'EACCES',
npm ERR! error rolling back   path: '/Users/leoj/.nvm/versions/node/v0.12.6/lib/node_modules/cordova/.npmignore' }

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/leoj/npm-debug.log

Which just seems wrong to me. However if I install a new package from the command-line by hand (without using sudo) that package has no issues being updated without using sudo.

from kitchenplan.

leoj3n avatar leoj3n commented on June 15, 2024

Would you suggest not using kitchenplan for NPM packages?

Edit: Just saw the note about Ansible... Nice.

from kitchenplan.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.