Comments (3)
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.
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.
Would you suggest not using kitchenplan for NPM packages?
Edit: Just saw the note about Ansible... Nice.
from kitchenplan.
Related Issues (20)
- Support for automatic download of CLT in 10.10 HOT 1
- Is there a way to install python packages via pip?
- `kitchenplan setup` complains if run after folder created HOT 2
- Creating symlinks HOT 4
- User Feedback: Struggling to "get it" with customization HOT 2
- SASS gem not installed HOT 7
- sudo not lasting long HOT 4
- Issues with settting up on a clean install HOT 16
- Can't get cask_versions working HOT 2
- Confusion between versions HOT 3
- Gem issues / always "Setting up bundler" HOT 2
- What is the best way to use unreleased recipes? HOT 3
- How to cleanly remove kitchenplan? HOT 3
- Chef 12 migration HOT 1
- Kitchenplan on OSX 10.11 El Capitan
- Homebrew command-line flags HOT 1
- kitchenplan abandons children HOT 2
- Provision fails after upgrade to El Capitan with sh: bundle: command not found HOT 2
- Problems with brew-cask HOT 2
- Multi-User
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kitchenplan.