Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENOENT: no such file or directory, chmod #620

Closed
eharrow opened this issue Mar 29, 2016 · 5 comments
Closed

ENOENT: no such file or directory, chmod #620

eharrow opened this issue Mar 29, 2016 · 5 comments

Comments

@eharrow
Copy link

eharrow commented Mar 29, 2016

Not sure where the issue is but I am unable to install sqlite3 in an ubuntu vagrant vm. Any ideas what I have missed?

vagrant@vagrant-ubuntu-trusty-64:/vagrant/pushnotify-server$ npm cache clean
vagrant@vagrant-ubuntu-trusty-64:/vagrant/pushnotify-server$ rm -rf node_modules/
vagrant@vagrant-ubuntu-trusty-64:/vagrant/pushnotify-server$ npm install sqlite3 --loglevel=info
npm info it worked if it ends with ok
npm info using npm@3.6.0
npm info using node@v5.6.0
npm info attempt registry request try #1 at 11:21:49 AM
npm http request GET https://registry.npmjs.org/sqlite3
npm-debug.log.txt

npm http 200 https://registry.npmjs.org/sqlite3
npm info addNameTag [ 'sqlite3', 'latest' ]
npm info retry fetch attempt 1 at 11:21:49 AM
npm info attempt registry request try #1 at 11:21:49 AM
npm http fetch GET https://registry.npmjs.org/sqlite3/-/sqlite3-3.1.2.tgz
npm http fetch 200 https://registry.npmjs.org/sqlite3/-/sqlite3-3.1.2.tgz
npm info attempt registry request try #1 at 11:21:54 AM
npm http request GET https://registry.npmjs.org/nan
npm http 200 https://registry.npmjs.org/nan
npm info retry fetch attempt 1 at 11:21:54 AM
npm info attempt registry request try #1 at 11:21:54 AM
npm http fetch GET https://registry.npmjs.org/nan/-/nan-2.2.0.tgz
npm http fetch 200 https://registry.npmjs.org/nan/-/nan-2.2.0.tgz
npm info lifecycle nan@2.2.0preinstall: nan@2.2.0
npm info lifecycle minimist@0.0.8
preinstall: minimist@0.0.8
npm info lifecycle mkdirp@0.5.1preinstall: mkdirp@0.5.1
npm info lifecycle abbrev@1.0.7
preinstall: abbrev@1.0.7
npm info lifecycle nopt@3.0.6preinstall: nopt@3.0.6
npm info lifecycle ansi@0.3.1
preinstall: ansi@0.3.1
npm info lifecycle delegates@1.0.0preinstall: delegates@1.0.0
npm info lifecycle core-util-is@1.0.2
preinstall: core-util-is@1.0.2
npm info lifecycle inherits@2.0.1preinstall: inherits@2.0.1
npm info lifecycle isarray@1.0.0
preinstall: isarray@1.0.0
npm info lifecycle process-nextick-args@1.0.6preinstall: process-nextick-args@1.0.6
npm info lifecycle string_decoder@0.10.31
preinstall: string_decoder@0.10.31
npm info lifecycle util-deprecate@1.0.2preinstall: util-deprecate@1.0.2
npm info lifecycle readable-stream@2.0.6
preinstall: readable-stream@2.0.6
npm info lifecycle are-we-there-yet@1.1.2preinstall: are-we-there-yet@1.1.2
npm info lifecycle has-unicode@2.0.0
preinstall: has-unicode@2.0.0
npm info lifecycle lodash.tostring@4.1.2preinstall: lodash.tostring@4.1.2
npm info lifecycle lodash.repeat@4.0.0
preinstall: lodash.repeat@4.0.0
npm info lifecycle lodash.pad@4.1.0preinstall: lodash.pad@4.1.0
npm info lifecycle lodash.tostring@4.1.2
preinstall: lodash.tostring@4.1.2
npm info lifecycle lodash.repeat@4.0.0preinstall: lodash.repeat@4.0.0
npm info lifecycle lodash.padend@4.2.0
preinstall: lodash.padend@4.2.0
npm info lifecycle lodash.tostring@4.1.2preinstall: lodash.tostring@4.1.2
npm info lifecycle lodash.repeat@4.0.0
preinstall: lodash.repeat@4.0.0
npm info lifecycle lodash.padstart@4.2.0preinstall: lodash.padstart@4.2.0
npm info lifecycle gauge@1.2.7
preinstall: gauge@1.2.7
npm info lifecycle npmlog@2.0.3preinstall: npmlog@2.0.3
npm info lifecycle deep-extend@0.4.1
preinstall: deep-extend@0.4.1
npm info lifecycle ini@1.3.4preinstall: ini@1.3.4
npm info lifecycle minimist@1.2.0
preinstall: minimist@1.2.0
npm info lifecycle strip-json-comments@1.0.4preinstall: strip-json-comments@1.0.4
npm info lifecycle rc@1.1.6
preinstall: rc@1.1.6
npm info lifecycle aws-sign2@0.6.0preinstall: aws-sign2@0.6.0
npm info lifecycle pseudomap@1.0.2
preinstall: pseudomap@1.0.2
npm info lifecycle yallist@2.0.0preinstall: yallist@2.0.0
npm info lifecycle lru-cache@4.0.0
preinstall: lru-cache@4.0.0
npm info lifecycle aws4@1.3.2preinstall: aws4@1.3.2
npm info lifecycle core-util-is@1.0.2
preinstall: core-util-is@1.0.2
npm info lifecycle inherits@2.0.1preinstall: inherits@2.0.1
npm info lifecycle isarray@1.0.0
preinstall: isarray@1.0.0
npm info lifecycle process-nextick-args@1.0.6preinstall: process-nextick-args@1.0.6
npm info lifecycle string_decoder@0.10.31
preinstall: string_decoder@0.10.31
npm info lifecycle util-deprecate@1.0.2preinstall: util-deprecate@1.0.2
npm info lifecycle readable-stream@2.0.6
preinstall: readable-stream@2.0.6
npm info lifecycle bl@1.0.3preinstall: bl@1.0.3
npm info lifecycle caseless@0.11.0
preinstall: caseless@0.11.0
npm info lifecycle delayed-stream@1.0.0preinstall: delayed-stream@1.0.0
npm info lifecycle combined-stream@1.0.5
preinstall: combined-stream@1.0.5
npm info lifecycle extend@3.0.0preinstall: extend@3.0.0
npm info lifecycle forever-agent@0.6.1
preinstall: forever-agent@0.6.1
npm info lifecycle async@1.5.2preinstall: async@1.5.2
npm info lifecycle color-convert@1.0.0
preinstall: color-convert@1.0.0
npm info lifecycle ansi-styles@2.2.0preinstall: ansi-styles@2.2.0
npm info lifecycle escape-string-regexp@1.0.5
preinstall: escape-string-regexp@1.0.5
npm info lifecycle ansi-regex@2.0.0preinstall: ansi-regex@2.0.0
npm info lifecycle has-ansi@2.0.0
preinstall: has-ansi@2.0.0
npm info lifecycle ansi-regex@2.0.0preinstall: ansi-regex@2.0.0
npm info lifecycle strip-ansi@3.0.1
preinstall: strip-ansi@3.0.1
npm info lifecycle supports-color@2.0.0preinstall: supports-color@2.0.0
npm info lifecycle chalk@1.1.1
preinstall: chalk@1.1.1
npm info lifecycle graceful-readlink@1.0.1preinstall: graceful-readlink@1.0.1
npm info lifecycle commander@2.9.0
preinstall: commander@2.9.0
npm info lifecycle generate-function@2.0.0preinstall: generate-function@2.0.0
npm info lifecycle is-property@1.0.2
preinstall: is-property@1.0.2
npm info lifecycle generate-object-property@1.2.0preinstall: generate-object-property@1.2.0
npm info lifecycle jsonpointer@2.0.0
preinstall: jsonpointer@2.0.0
npm info lifecycle xtend@4.0.1preinstall: xtend@4.0.1
npm info lifecycle is-my-json-valid@2.13.1
preinstall: is-my-json-valid@2.13.1
npm info lifecycle pinkie@2.0.4preinstall: pinkie@2.0.4
npm info lifecycle pinkie-promise@2.0.0
preinstall: pinkie-promise@2.0.0
npm info lifecycle har-validator@2.0.6preinstall: har-validator@2.0.6
npm info lifecycle hoek@2.16.3
preinstall: hoek@2.16.3
npm info lifecycle boom@2.10.1preinstall: boom@2.10.1
npm info lifecycle cryptiles@2.0.5
preinstall: cryptiles@2.0.5
npm info lifecycle sntp@1.0.9preinstall: sntp@1.0.9
npm info lifecycle hawk@3.1.3
preinstall: hawk@3.1.3
npm info lifecycle assert-plus@0.2.0preinstall: assert-plus@0.2.0
npm info lifecycle extsprintf@1.0.2
preinstall: extsprintf@1.0.2
npm info lifecycle json-schema@0.2.2preinstall: json-schema@0.2.2
npm info lifecycle verror@1.3.6
preinstall: verror@1.3.6
npm info lifecycle jsprim@1.2.2preinstall: jsprim@1.2.2
npm info lifecycle asn1@0.2.3
preinstall: asn1@0.2.3
npm info lifecycle assert-plus@1.0.0preinstall: assert-plus@1.0.0
npm info lifecycle dashdash@1.13.0
preinstall: dashdash@1.13.0
npm info lifecycle jsbn@0.1.0preinstall: jsbn@0.1.0
npm info lifecycle jodid25519@1.0.2
preinstall: jodid25519@1.0.2
npm info lifecycle ecc-jsbn@0.1.1preinstall: ecc-jsbn@0.1.1
npm info lifecycle tweetnacl@0.14.1
preinstall: tweetnacl@0.14.1
npm info lifecycle sshpk@1.7.4preinstall: sshpk@1.7.4
npm info lifecycle http-signature@1.1.1
preinstall: http-signature@1.1.1
npm info lifecycle is-typedarray@1.0.0preinstall: is-typedarray@1.0.0
npm info lifecycle isstream@0.1.2
preinstall: isstream@0.1.2
npm info lifecycle json-stringify-safe@5.0.1preinstall: json-stringify-safe@5.0.1
npm info lifecycle mime-db@1.22.0
preinstall: mime-db@1.22.0
npm info lifecycle mime-types@2.1.10preinstall: mime-types@2.1.10
npm info lifecycle form-data@1.0.0-rc4
preinstall: form-data@1.0.0-rc4
npm info lifecycle node-uuid@1.4.7preinstall: node-uuid@1.4.7
npm info lifecycle oauth-sign@0.8.1
preinstall: oauth-sign@0.8.1
npm info lifecycle qs@6.0.2preinstall: qs@6.0.2
npm info lifecycle stringstream@0.0.5
preinstall: stringstream@0.0.5
npm info lifecycle tough-cookie@2.2.2preinstall: tough-cookie@2.2.2
npm info lifecycle tunnel-agent@0.4.2
preinstall: tunnel-agent@0.4.2
npm info lifecycle request@2.69.0preinstall: request@2.69.0
npm info lifecycle wrappy@1.0.1
preinstall: wrappy@1.0.1
npm info lifecycle inherits@2.0.1preinstall: inherits@2.0.1
npm info lifecycle balanced-match@0.3.0
preinstall: balanced-match@0.3.0
npm info lifecycle concat-map@0.0.1preinstall: concat-map@0.0.1
npm info lifecycle brace-expansion@1.1.3
preinstall: brace-expansion@1.1.3
npm info lifecycle minimatch@3.0.0preinstall: minimatch@3.0.0
npm info lifecycle wrappy@1.0.1
preinstall: wrappy@1.0.1
npm info lifecycle once@1.3.3preinstall: once@1.3.3
npm info lifecycle inflight@1.0.4
preinstall: inflight@1.0.4
npm info lifecycle path-is-absolute@1.0.0preinstall: path-is-absolute@1.0.0
npm info lifecycle glob@7.0.3
preinstall: glob@7.0.3
npm info lifecycle rimraf@2.5.2preinstall: rimraf@2.5.2
npm info lifecycle semver@5.1.0
preinstall: semver@5.1.0
npm info lifecycle ms@0.7.1preinstall: ms@0.7.1
npm info lifecycle debug@2.2.0
preinstall: debug@2.2.0
npm info lifecycle inherits@2.0.1preinstall: inherits@2.0.1
npm info lifecycle balanced-match@0.3.0
preinstall: balanced-match@0.3.0
npm info lifecycle concat-map@0.0.1preinstall: concat-map@0.0.1
npm info lifecycle brace-expansion@1.1.3
preinstall: brace-expansion@1.1.3
npm info lifecycle minimatch@3.0.0preinstall: minimatch@3.0.0
npm info lifecycle graceful-fs@4.1.3
preinstall: graceful-fs@4.1.3
npm info lifecycle inherits@2.0.1preinstall: inherits@2.0.1
npm info lifecycle fstream@1.0.8
preinstall: fstream@1.0.8
npm info lifecycle fstream-ignore@1.0.3preinstall: fstream-ignore@1.0.3
npm info lifecycle wrappy@1.0.1
preinstall: wrappy@1.0.1
npm info lifecycle once@1.3.3preinstall: once@1.3.3
npm info lifecycle core-util-is@1.0.2
preinstall: core-util-is@1.0.2
npm info lifecycle inherits@2.0.1preinstall: inherits@2.0.1
npm info lifecycle isarray@1.0.0
preinstall: isarray@1.0.0
npm info lifecycle process-nextick-args@1.0.6preinstall: process-nextick-args@1.0.6
npm info lifecycle string_decoder@0.10.31
preinstall: string_decoder@0.10.31
npm info lifecycle util-deprecate@1.0.2preinstall: util-deprecate@1.0.2
npm info lifecycle readable-stream@2.0.6
preinstall: readable-stream@2.0.6
npm info lifecycle uid-number@0.0.6preinstall: uid-number@0.0.6
npm info lifecycle graceful-fs@4.1.3
preinstall: graceful-fs@4.1.3
npm info lifecycle inherits@2.0.1preinstall: inherits@2.0.1
npm info lifecycle fstream@1.0.8
preinstall: fstream@1.0.8
npm info lifecycle block-stream@0.0.8preinstall: block-stream@0.0.8
npm info lifecycle tar@2.2.1
preinstall: tar@2.2.1
npm info lifecycle tar-pack@3.1.3preinstall: tar-pack@3.1.3
npm info lifecycle node-pre-gyp@0.6.24
preinstall: node-pre-gyp@0.6.24
npm info lifecycle sqlite3@3.1.2~preinstall: sqlite3@3.1.2
npm info linkStuff nan@2.2.0
npm info linkStuff minimist@0.0.8
npm info linkStuff mkdirp@0.5.1
npm WARN pushnotify-server@1.0.0-SNAPSHOT No repository field.
npm WARN pushnotify-server@1.0.0-SNAPSHOT license should be a valid SPDX license expression
npm ERR! Linux 3.13.0-79-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "sqlite3" "--loglevel=info"
npm ERR! node v5.6.0
npm ERR! npm v3.6.0
npm ERR! path /vagrant/pushnotify-server/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/mkdirp/bin/cmd.js
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall chmod

npm ERR! enoent ENOENT: no such file or directory, chmod '/vagrant/pushnotify-server/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/mkdirp/bin/cmd.js'
npm ERR! enoent ENOENT: no such file or directory, chmod '/vagrant/pushnotify-server/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/mkdirp/bin/cmd.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.
npm ERR! enoent

npm ERR! Please include the following file with any support request:
npm ERR! /vagrant/pushnotify-server/npm-debug.log

@eharrow
Copy link
Author

eharrow commented Mar 30, 2016

I have found a work around http://stackoverflow.com/questions/17990647/npm-install-errors-with-error-enoent-chmod using --no-bin-links which works but I don't know if there is an underlying defect or it is just one of those things.

@wbecker
Copy link

wbecker commented Apr 6, 2016

I got this working using npm install --no-bin-links but had to run npm install -g node-pre-gyp first.

@eharrow
Copy link
Author

eharrow commented Apr 7, 2016

To be honest I may have done that as well at some point as over the course of a day I must have run npm install about 30 times.

As a follow up I did try a npm install --no-bin-links on a clean directory and it failed with a recursion issue in npm due to the --no-bin-links. Of course being on a host with node already installed node-pre-gyp would have already been there if installed globally. A rm -rf node_modules and then npm rebuild seemed to fix it.

@springmeyer
Copy link
Contributor

springmeyer commented Jul 16, 2018

Besides deleting package-lock.json the other workaround here is to upgrade to node-sqlite3@4.0.2, which should avoid this problem since it no longer uses bundledDependencies which trigger problems in recent npm versions > npm@5.6.x. refs mapbox/node-pre-gyp#403

@mrgenesis
Copy link

mrgenesis commented Jul 20, 2020

I got this working using npm install --no-bin-links but had to run npm install -g node-pre-gyp first.

This working for me. Thank you.

@hmschreiner @digitalinnovationone
fiquei curioso para entender esse erro.

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

No branches or pull requests

4 participants