question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

cspell fails to install using nodeenv

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:24 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
Jason3Scommented, Jul 6, 2018

The package was using prepublish but that was deprecated. It now uses prepare.

1reaction
asottilecommented, Jul 5, 2018

This patch seems to make npm install -g . work:

diff --git a/package.json b/package.json
index e3f34fa..a9516a8 100644
--- a/package.json
+++ b/package.json
@@ -19,6 +19,7 @@
     "lint": "tslint --force --format verbose \"src/**/*.ts\"",
     "lint-travis": "tslint \"src/**/*.ts\"",
     "build": "npm run compile",
+    "prepare": "npm run compile",
     "clean-build": "npm run clean && npm run build && npm run build-dictionaries",
     "build-dictionaries": "npm run build_dictionaries-word-lists",
     "build_dictionaries-word-lists": "node node_modules/cspell-tools/dist/app.js compile \"./dictionaries/!(words)*.txt\" -o ./dist/dictionaries/",
Read more comments on GitHub >

github_iconTop Results From Across the Web

cspell fails to install using nodeenv · Issue #53 - GitHub
While trying to enable cspell to be used a pre-commit hook, I faces a new issue, failure to install when doing: pip install...
Read more >
cspell - npm
Start using cspell in your project by running `npm i cspell`. There are 20 other projects in the npm registry using cspell.
Read more >
Getting Started with CSpell
Adding CSpell to an existing project. In the steps below we will create a cspell configuration file and setup a single custom dictionary...
Read more >
Spell Check not working in Word 2010 - Office - Microsoft Learn
Spell Check does not recognize misspelled words. ... Proofing Tools are not installed for <default language>, try re-installing proofing ...
Read more >
cspell | Yarn - Package Manager
cspell is a command line tool and library for spell checking code. Support Future Development. Become a Patreon! Support through PayPal ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found