cspell: cspell fails to install using nodeenv
While trying to enable cspell to be used a pre-commit hook, I faces a new issue, failure to install when doing:
pip install --user nodeenv
git clone https://github.com/Jason3S/cspell
cd cspell
nodeenv nenv
. nenv/bin/activate
npm install -g .
The last command fails with:
$ npm install -g . [21:18:12]
npm ERR! path /home/ssbarnea/cspell/nenv/lib/node_modules/cspell/dist/app.js
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall chmod
npm ERR! enoent ENOENT: no such file or directory, chmod '/home/ssbarnea/cspell/nenv/lib/node_modules/cspell/dist/app.js'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! /home/ssbarnea/.npm/_logs/2018-07-04T21_18_18_526Z-debug.log
(nenv)FAIL: 254
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 24 (9 by maintainers)
Commits related to this issue
- assure compilation is made before install Avoids failure to install when compilation was not run yet. Fixes: #53 Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com> — committed to ssbarnea/cspell by ssbarnea 6 years ago
- assure compilation is made before install Avoids failure to install when compilation was not run yet. Fixes: #53 Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com> — committed to ssbarnea/cspell by ssbarnea 6 years ago
The package was using
prepublishbut that was deprecated. It now usesprepare.This patch seems to make
npm install -g .work: