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

Error: Cannot find module './lib/js-yaml.js' #36

Closed
jiem opened this issue Jan 10, 2012 · 8 comments
Closed

Error: Cannot find module './lib/js-yaml.js' #36

jiem opened this issue Jan 10, 2012 · 8 comments

Comments

@jiem
Copy link

jiem commented Jan 10, 2012

I just installed "js-yaml" with "npm install js-yaml". It doesn't work because the file "./lib/js-yaml.js" isn't there. I had to take it from the git repo and paste it into my dir "node_modules/js-yaml/lib" to make it work. Great job for the native port though!

@puzrin
Copy link
Member

puzrin commented Jan 10, 2012

Duplicates #34 / #35

@puzrin puzrin closed this as completed Jan 10, 2012
@jiem
Copy link
Author

jiem commented Jan 10, 2012

Thanks for your answer, I should have read the previous issues! I'm not on Windows but on Ubuntu 10.04 LTS, the problem also happens.

@puzrin
Copy link
Member

puzrin commented Jan 10, 2012

Node & npm version? I guess, you should update npm

http://travis-ci.org/nodeca/js-yaml

We use ubuntu/debian for develepment, with latest 0.6 branch.

@jiem
Copy link
Author

jiem commented Jan 10, 2012

I just installed the latest version of npm. I have node 6.6. I npm-installed js-yaml again and "lib/js-yaml.js" is still not there.
May I suggest that you change your "index.js" at the root of the module by the missing file "lib/js-yaml.js" file renamed "index.js" and with "require('./lib/js-yaml/loader')" instead of "require('./js-yaml/loader')"? It may work better for Windows user & Ubuntu 10.04 users like me...

@phun-ky
Copy link

phun-ky commented Sep 5, 2012

Installed the proposed fix from master tree, i still receive the error Error: ENOENT, no such file or directory '..//node_modules/js-yaml/bin/js-yaml.js'

@puzrin
Copy link
Member

puzrin commented Sep 5, 2012

Please, don't duplicate messages and create new issue with detailed description, how to reproduce your bug.

@gocanto
Copy link

gocanto commented Nov 25, 2015

Just install the package and you will be ready to go! here is the link https://www.npmjs.com/package/js-yaml

@mosamy
Copy link

mosamy commented Jan 22, 2016

I had to manually copy the files as mentioned above and detailed here
https://github.com/mosamy/MyBlog/blob/master/BowerInstallError

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

5 participants