Skip to content
This repository has been archived by the owner on Nov 24, 2021. It is now read-only.

node keystone command throws error after installing on Mac OSX Yosemite #129

Closed
tejokumar opened this issue Sep 25, 2015 · 18 comments
Closed

Comments

@tejokumar
Copy link

I have created keystone project with default options by running yo keystone. Project is created without any errors. When I run node kestone, I get following error.

MYSYSTEM:my-site myusername$ node keystone
module.js:338
    throw err;
          ^
Error: Cannot find module 'unicode/category/So'
    at Function.Module._resolveFilename (module.js:336:15)
    at Function.Module._load (module.js:278:25)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at symbols (/Users/myusername/github/myweb/my-site/node_modules/keystone/node_modules/keystone-utils/node_modules/slug/slug.js:6:16)
    at /Users/myusername/github/myweb/my-site/node_modules/keystone/node_modules/keystone-utils/node_modules/slug/slug.js:199:5
    at Object.<anonymous> (/Users/myusername/github/myweb/my-site/node_modules/keystone/node_modules/keystone-utils/node_modules/slug/slug.js:212:2)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)

I am using node - v0.12.7, npm -2.11.3

@morenoh149
Copy link
Contributor

try node 4.0 or later

@nardelli
Copy link

I get the same error. Ubuntu 14.04 x64 running on Digital Ocean. Node v4.1.1, npm 2.14.4.

I've tried sudo node keystone, also npm cache clean. Seems i'm getting many issues with the node_modules. Am i on too new a version of npm or node?

@priom
Copy link

priom commented Nov 12, 2015

getting the same error..can't get it fixed...installed unicode manually...did npm cache clean and sudo npm...still same error!!! and I'm running all the latest version of all frameworks

@priom
Copy link

priom commented Nov 12, 2015

okay..I just fixed mine..I remove unicode and slug modules manually from node_modules...and then reinstalled just slug with npm install slug...and it worked finally!!!!

@morenoh149
Copy link
Contributor

@priom do you know what the problem was exactly? so we can fix it for others.

@terenzeyuen
Copy link

Having the same issue...removing slug and unicode and run npm install slug worked.

@peterpme
Copy link
Contributor

Take a look at this package.
https://github.com/dodo/node-unicodetable

running apt-get install unicode followed by npm install will take care of the issue.

@priom
Copy link

priom commented Nov 17, 2015

@morenoh149 hey..the slug version comes with the package might be deprecated which was causing all this issue...

@morenoh149
Copy link
Contributor

which slug dependency?

@r1b
Copy link

r1b commented Dec 4, 2015

I also have this issue:

rcj@mcdouble:keystonejs-1865 $ node -v
v4.2.0
rcj@mcdouble:keystonejs-1865 $ npm -v
3.5.0

It looks like postinstall script from node-unicodetable is not running?

If I manually run:

node node_modules/unicode/install.js

then I can run node keystone without errors

@morenoh149
Copy link
Contributor

hmm does https://github.com/dodo/node-unicodetable/blob/master/package.json#L13 look right? maybe it should be "postinstall": "install.js", https://docs.npmjs.com/misc/scripts#examples

@TheRoadSouth
Copy link

Same here, as mentioned above, removing the slug and unicode modules manually and running npm install slug worked.

@swrdfish
Copy link

While installing the unicode module the install.sh script tried to find the UnicodeData.txt file but failed. It also tried to download it but that didn't work for some reason. So I manually downloaded the UnicodeData.txt file put in the path it was looking for and then ran the install.sh script again. This generated the required So files and the problem was fixed.

@telekosmos
Copy link

That is the solution worked for me! (using node v4.2.2 and npm 3.5.3). Just say that the right paths to store the file can be found in the unicode repo (exactly in install.js file).
Hope it helps.

@r3wt
Copy link
Contributor

r3wt commented May 12, 2016

fyi, this problem occurs on debian too. the above steps get past this problem,but it gets hemmed up again at lib sass

@HughGrant
Copy link

same here on windows 7, with NODE 6.2

@rajendrakhabiyagate6
Copy link

If you are facing this issue and you are behind windows please follow below steps, i hope worked for you :

  1. Remove the unicode module using npm, npm remove unicode
  2. Downloaded the file from
    http://unicode.org/Public/UNIDATA/UnicodeData.txt and placed it into
    C:\usr\share\unicode-data\ if your project is in C drive, or if you are using
    linux place it in /usr/share/unicode or /usr/share/unicode-data
  3. Installed unicode again

@Noviny
Copy link
Contributor

Noviny commented Feb 17, 2017

This issue has been resolved in Keystone itself for v4, which we are upgrading the generator to now.

If anyone is still experiencing after this, please reopen the issue.

@Noviny Noviny closed this as completed Feb 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests