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

npm install -g poet doesn't? #124

Open
mcarifio opened this issue Oct 10, 2017 · 2 comments
Open

npm install -g poet doesn't? #124

mcarifio opened this issue Oct 10, 2017 · 2 comments

Comments

@mcarifio
Copy link

mcarifio commented Oct 10, 2017

I'm a node n00b here, so this might be pilot error:

root@shuttle:~# npm list -g poet                        
/usr/lib                                                
└── [email protected]                                          

root@shuttle:~# node --version                          
v8.6.0                                                  
root@shuttle:~# node                                    
> require('poet');                                      
Error: Cannot find module 'poet'                        
    at Function.Module._resolveFilename (module.js:527:15)                                                       
    at Function.Module._load (module.js:476:23)         
    at Module.require (module.js:568:17)                
    at require (internal/module.js:11:18)               
    at repl:1:1                                         
    at ContextifyScript.Script.runInThisContext (vm.js:50:33)                                                    
    at REPLServer.defaultEval (repl.js:239:29)          
    at bound (domain.js:301:14)                         
    at REPLServer.runBound [as eval] (domain.js:314:12) 
    at REPLServer.onLine (repl.js:440:10)               

I was expecting node to successfully find [email protected].

Please advise. Thanks.

@ChrisMcKenzie
Copy link
Collaborator

I see the same issue, I am digging into a solution for this right now!

@ChrisMcKenzie
Copy link
Collaborator

Ok, I was able to get it to import once I made sure node is looking in the right path can you try setting the NODE_PATH env var to include the path listed in your previous list call (/usr/lib/node_modules).

So you would echo NODE_PATH=$NODE_PATH:/usr/lib/node_modules

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

2 participants