Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

npm ERR! Attempt to unlock "alfred-chrome", which hasn't been locked #6733

Closed
mmillis1 opened this issue Nov 19, 2014 · 3 comments
Closed

npm ERR! Attempt to unlock "alfred-chrome", which hasn't been locked #6733

mmillis1 opened this issue Nov 19, 2014 · 3 comments
Labels

Comments

@mmillis1
Copy link

So I have been trying to install https://github.com/ShogunPanda/alfred-chrome

and I continue to get this error from npm

Michaels-Pro:~ mmillis$ npm -g install alfred-chrome
npm WARN locking Error: EACCES, open '/Users/mmillis/.npm/_locks/alfred-chrome-8d437c7b68907cff.lock'
npm WARN locking  /Users/mmillis/.npm/_locks/alfred-chrome-8d437c7b68907cff.lock failed { [Error: EACCES, open '/Users/mmillis/.npm/_locks/alfred-chrome-8d437c7b68907cff.lock']
npm WARN locking   errno: 3,
npm WARN locking   code: 'EACCES',
npm WARN locking   path: '/Users/mmillis/.npm/_locks/alfred-chrome-8d437c7b68907cff.lock' }
npm ERR! Darwin 14.0.0
npm ERR! argv "node" "/usr/local/bin/npm" "-g" "install" "alfred-chrome"
npm ERR! node v0.10.33
npm ERR! npm  v2.1.6

npm ERR! Attempt to unlock /Users/mmillis/.node/lib/node_modules/alfred-chrome, which hasn't been locked
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <http://github.com/npm/npm/issues>

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

Here is my error log:

0 info it worked if it ends with ok
1 verbose cli [ 'node', '/usr/local/bin/npm', '-g', 'install', 'alfred-chrome' ]
2 info using npm@2.1.6
3 info using node@v0.10.33
4 verbose node symlink /usr/local/bin/node
5 silly cache add args [ 'alfred-chrome', null ]
6 verbose cache add spec alfred-chrome
7 silly cache add parsed spec { raw: 'alfred-chrome',
7 silly cache add   scope: null,
7 silly cache add   name: 'alfred-chrome',
7 silly cache add   rawSpec: '',
7 silly cache add   spec: '*',
7 silly cache add   type: 'range' }
8 verbose addNamed alfred-chrome@*
9 silly addNamed semver.valid null
10 silly addNamed semver.validRange *
11 silly addNameRange { name: 'alfred-chrome', range: '*', hasData: false }
12 verbose mapToRegistry name alfred-chrome
13 verbose mapToRegistry uri https://registry.npmjs.org/alfred-chrome
14 verbose addNameRange registry:https://registry.npmjs.org/alfred-chrome not in flight; fetching
15 verbose request on initialization, where is /alfred-chrome
16 verbose request after pass 1, where is /alfred-chrome
17 verbose request url raw /alfred-chrome
18 verbose request resolving registry [ 'https://registry.npmjs.org/', './alfred-chrome' ]
19 verbose request after pass 2, where is https://registry.npmjs.org/alfred-chrome
20 verbose request no auth needed
21 info attempt registry request try #1 at 17:25:12
22 verbose request id cc891ef7c50b14df
23 verbose etag "4MYMASXVOTUCSYMPMFUBWRIYV"
24 http request GET https://registry.npmjs.org/alfred-chrome
25 http 304 https://registry.npmjs.org/alfred-chrome
26 silly registry.get cb [ 304,
    26 silly registry.get   { date: 'Wed, 19 Nov 2014 01:25:13 GMT',
26 silly registry.get     server: 'Apache',
26 silly registry.get     via: '1.1 varnish',
26 silly registry.get     'last-modified': 'Wed, 19 Nov 2014 01:25:13 GMT',
26 silly registry.get     'cache-control': 'max-age=60',
26 silly registry.get     etag: '"4MYMASXVOTUCSYMPMFUBWRIYV"',
26 silly registry.get     age: '0',
26 silly registry.get     'x-served-by': 'cache-lax1424-LAX',
26 silly registry.get     'x-cache': 'MISS',
26 silly registry.get     'x-cache-hits': '0',
26 silly registry.get     'x-timer': 'S1416360313.616665,VS0,VE172',
26 silly registry.get     vary: 'Accept',
26 silly registry.get     'content-length': '0',
26 silly registry.get     'keep-alive': 'timeout=10, max=50',
26 silly registry.get     connection: 'Keep-Alive' } ]
27 verbose etag https://registry.npmjs.org/alfred-chrome from cache
28 silly addNameRange number 2 { name: 'alfred-chrome', range: '*', hasData: true }
29 silly addNameRange versions [ 'alfred-chrome', [ '0.0.1', '0.0.2', '1.0.0' ] ]
30 verbose addNamed alfred-chrome@1.0.0
31 silly addNamed semver.valid 1.0.0
32 silly addNamed semver.validRange 1.0.0
33 silly cache afterAdd alfred-chrome@1.0.0
34 verbose afterAdd /Users/mmillis/.npm/alfred-chrome/1.0.0/package/package.json not in flight; writing
35 verbose afterAdd /Users/mmillis/.npm/alfred-chrome/1.0.0/package/package.json written
36 silly install resolved [ { name: 'alfred-chrome',
36 silly install resolved     version: '1.0.0',
36 silly install resolved     description: 'Alfred 2 Google Chrome manager',
36 silly install resolved     main: 'alfred-chrome.js',
36 silly install resolved     files:
36 silly install resolved      [ 'Alfred Chrome.alfredworkflow',
        36 silly install resolved        'README.md',
36 silly install resolved        'CHANGELOG.md',
36 silly install resolved        'installer' ],
36 silly install resolved     bin: { 'alfred-chrome': 'alfred-chrome.js' },
36 silly install resolved     repository:
36 silly install resolved      { type: 'git',
36 silly install resolved        url: 'https://github.com/ShogunPanda/alfred-chrome' },
36 silly install resolved     keywords: [ 'alfred', 'chrome', 'google chrome' ],
36 silly install resolved     author:
36 silly install resolved      { name: 'Shogun',
36 silly install resolved        email: 'shogun@cowtech.it',
36 silly install resolved        url: 'http://cowtech.it' },
36 silly install resolved     license: 'MIT',
36 silly install resolved     bugs: { url: 'https://github.com/ShogunPanda/alfred-chrome/issues' },
36 silly install resolved     homepage: 'https://github.com/ShogunPanda/alfred-chrome',
36 silly install resolved     dependencies: { 'fs-extra': '^0.12.0', plist: '^1.1.0' },
36 silly install resolved     gitHead: 'b3c403cd654c2512e5903497760d2196d4569c2e',
36 silly install resolved     _id: 'alfred-chrome@1.0.0',
36 silly install resolved     scripts: {},
36 silly install resolved     _shasum: 'a0c875427c1474ccd97c4981dc3fc486245d3bbf',
36 silly install resolved     _from: 'alfred-chrome@*',
36 silly install resolved     _npmVersion: '1.4.28',
36 silly install resolved     _npmUser: { name: 'shogun_panda', email: 'shogun@cowtech.it' },
36 silly install resolved     maintainers: [ [Object] ],
36 silly install resolved     dist:
36 silly install resolved      { shasum: 'a0c875427c1474ccd97c4981dc3fc486245d3bbf',
36 silly install resolved        tarball: 'http://registry.npmjs.org/alfred-chrome/-/alfred-chrome-1.0.0.tgz' },
36 silly install resolved     directories: {},
36 silly install resolved     _resolved: 'https://registry.npmjs.org/alfred-chrome/-/alfred-chrome-1.0.0.tgz',
36 silly install resolved     readme: 'ERROR: No README data found!' } ]
37 info install alfred-chrome@1.0.0 into /Users/mmillis/.node/lib
38 info installOne alfred-chrome@1.0.0
39 verbose installOne of alfred-chrome to /Users/mmillis/.node/lib not in flight; installing
40 warn locking Error: EACCES, open '/Users/mmillis/.npm/_locks/alfred-chrome-8d437c7b68907cff.lock'
40 warn locking  /Users/mmillis/.npm/_locks/alfred-chrome-8d437c7b68907cff.lock failed { [Error: EACCES, open '/Users/mmillis/.npm/_locks/alfred-chrome-8d437c7b68907cff.lock']
40 warn locking   errno: 3,
40 warn locking   code: 'EACCES',
40 warn locking   path: '/Users/mmillis/.npm/_locks/alfred-chrome-8d437c7b68907cff.lock' }
41 verbose stack Error: Attempt to unlock /Users/mmillis/.node/lib/node_modules/alfred-chrome, which hasn't been locked
41 verbose stack     at unlock (/usr/local/lib/node_modules/npm/lib/utils/locker.js:66:11)
41 verbose stack     at cb (/usr/local/lib/node_modules/npm/lib/install.js:929:5)
41 verbose stack     at /usr/local/lib/node_modules/npm/lib/install.js:933:20
41 verbose stack     at /usr/local/lib/node_modules/npm/lib/utils/locker.js:40:9
41 verbose stack     at cb (/usr/local/lib/node_modules/npm/node_modules/lockfile/lockfile.js:149:38)
41 verbose stack     at /usr/local/lib/node_modules/npm/node_modules/lockfile/lockfile.js:177:38
41 verbose stack     at Object.oncomplete (fs.js:107:15)
42 verbose cwd /Users/mmillis
43 error Darwin 14.0.0
44 error argv "node" "/usr/local/bin/npm" "-g" "install" "alfred-chrome"
45 error node v0.10.33
46 error npm  v2.1.6
47 error Attempt to unlock /Users/mmillis/.node/lib/node_modules/alfred-chrome, which hasn't been locked
48 error If you need help, you may report this error at:
48 error     <http://github.com/npm/npm/issues>
49 verbose exit [ 1, true ]

Had anyone had this sort of issue? Is this the npm packages fault or a fault on my end? thanks!

@smikes
Copy link
Contributor

smikes commented Nov 19, 2014

There's definitely a problem with the alfred-chrome package. When I install with npm@2.1.8 I get:

npm ERR! enoent ENOENT, chmod '/Users/smikes/.nvm/v0.10.33/lib/node_modules/alfred-chrome/alfred-chrome.js'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.

And sure enough, when I look inside the package I find:

$ npm pack alfred-chrome
$ tar tzf alfred-chrome-1.0.0.tgz  | grep js
package/package.json
$

So the module was published with no alfred-chrome.js file in it.

There may also be a problem with npm and its cache. You are running version 2.1.6, but the latest is 2.1.8. Why not try cleaning the cache and upgrading?

$ npm cache clean
$ npm install -g npm@latest

You will also probably want to contact the maintainer of alfred-chrome and ask them to add alfred-chrome.js to the files member in package.json.

@mmillis1
Copy link
Author

@smikes Thank you very much for the info! I have upgraded like you said and will contact the maintainer and let him know. Thanks again!

@ShogunPanda
Copy link

I'm the maintainer of alfred-chrome. Ok, I'll take a look to the issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants