-
Notifications
You must be signed in to change notification settings - Fork 1
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
Cannot find module 'regex-trigram' #2
Comments
@lgessler thanks for reporting — will check it out today. |
I don't think this is a permanent solution, but I was able to get it working for now by doing the following: # from the project's directory
cd node_modules/regex-trigram
npm install grunt --save-dev
npm install
grunt
cd ../..
vim index.js
# change require line to
# var regex = require('./node_modules/regex-trigram/src/regex-trigram.js');
node index.js |
@lgessler good to know the workaround. I have been including from browser only so far, but sounds like it may be straightforward to fix the node case. |
bfulton
added a commit
that referenced
this issue
Jan 2, 2016
Fixed in 0.0.9. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
First of all thank you for sharing this library with the world--I find myself in need of Russ Cox's algorithm in a JS project and am very happy to find a port of his Go code.
The problem.
This is what I have done to reproduce the bug, both on my personal machine (OSX) and a Digital Ocean Ubuntu 14.04 droplet set up for Node:
This produces an error:
Attempts at solutions.
Installing globally with
npm install -g regex-trigram
does not affect the error.If I change the line to
var regex = require('./node_modules/regex-trigram/src/app.js');
, I instead get this error:Of course, no such directory
/.../node_modules/regex-trigram/build
exists, so this is expected. I see there is a Gruntfile in the directory for regex-trigram, but I suspect if I need to use grunt then I am going about requiring this package the wrong way.The text was updated successfully, but these errors were encountered: