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

Error when running npm install on Debian w/o m4 installed #7

Open
fortes opened this issue Dec 12, 2016 · 4 comments
Open

Error when running npm install on Debian w/o m4 installed #7

fortes opened this issue Dec 12, 2016 · 4 comments

Comments

@fortes
Copy link

fortes commented Dec 12, 2016

m4 isn't installed by default on all Debian, so we run into an error trying to run the following:

eval $(dependencyEnv) && nopam && sh -exc echo | m4 && (opam-installer --prefix=$opam_prefix || true)

I manually installed m4 and re-ran, and then it worked.

Here is full log from NPM:

13486 verbose stack Error: [email protected] postinstall: `eval $(dependencyEnv) && nopam && sh -exc echo | m4 && (opam-installer --prefix=$opam_prefix || true)`
13486 verbose stack spawn ENOENT
13486 verbose stack     at ChildProcess.<anonymous> (/home/fortes/dotfiles/symlinks/local/lib/node_modules/npm/lib/utils/spawn.js:33:16)
13486 verbose stack     at emitTwo (events.js:106:13)
13486 verbose stack     at ChildProcess.emit (events.js:191:7)
13486 verbose stack     at maybeClose (internal/child_process.js:877:16)
13486 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
13487 verbose pkgid [email protected]
13488 verbose cwd /home/fortes/ReasonProject
13489 error Linux 3.14.0
13490 error argv "/usr/bin/nodejs" "/home/fortes/.local/bin/npm" "i"
13491 error node v6.9.1
13492 error npm  v3.10.3
13493 error file sh
13494 error code ELIFECYCLE
13495 error errno ENOENT
13496 error syscall spawn
13497 error [email protected] postinstall: `eval $(dependencyEnv) && nopam && sh -exc echo | m4 && (opam-installer --prefix=$opam_prefix || true)`
13497 error spawn ENOENT
13498 error Failed at the [email protected] postinstall script 'eval $(dependencyEnv) && nopam && sh -exc echo | m4 && (opam-installer --prefix=$opam_prefix ||true)'.
13498 error Make sure you have the latest version of node.js and npm installed.
13498 error If you do, this is most likely a problem with the conf-m4-actual package,
13498 error not with npm itself.
13498 error Tell the author that this fails on your system:
13498 error     eval $(dependencyEnv) && nopam && sh -exc echo | m4 && (opam-installer --prefix=$opam_prefix || true)
13498 error You can get information on how to open an issue for this project with:
13498 error     npm bugs conf-m4-actual
13498 error Or if that isn't available, you can get their info via:
13498 error     npm owner ls conf-m4-actual
13498 error There is likely additional logging output above.
13499 verbose exit [ 1, true ]
@fortes fortes changed the title Error when running npm install on Debian Error when running npm install on Debian w/o m4 installed Dec 12, 2016
@vramana
Copy link
Contributor

vramana commented Dec 12, 2016

Did you clear node_modules before you do npm install again?

@fortes
Copy link
Author

fortes commented Dec 12, 2016

@vramana Yes, I did that before filing and it fixed the issue. I updated the description.

@vramana
Copy link
Contributor

vramana commented Dec 12, 2016

@jordwalke I think we should add in the README to install m4 on Ubuntu and debian for running npm install.

@jordwalke
Copy link
Member

can we package up m4 as an npm package?

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

3 participants