google-code-export / esprima

Automatically exported from code.google.com/p/esprima
BSD 2-Clause "Simplified" License
1 stars 0 forks source link

"npm test" breaks on check-version.js -- doesn't exist #605

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. npm install esprima
2. cd node_modules/esprima
3. npm install
4. npm test

What is the expected output?
I guess successfully run tests.

What do you see instead?
> node tools/check-version.js

module.js:340
    throw err;
          ^
Error: Cannot find module 
'(omitted)/node_modules/esprima/tools/check-version.js'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:906:

What version of the product are you using? On what operating system? Which
browser?

OS X Mavericks, node 0.10.31, npm 1.4.23

Original issue reported on code.google.com by kendr...@circuitsix.com on 20 Oct 2014 at 9:38

GoogleCodeExporter commented 9 years ago
This is not going to be easy to fix. The test is expected to be executed only 
from a Git checkout of Esprima, not for an install via npm.

Original comment by ariya.hi...@gmail.com on 2 Nov 2014 at 2:19

GoogleCodeExporter commented 9 years ago
Sorry, I realized that after I put this up, forgot to close it. That totally 
makes sense. You might want to mention it in the documentation.

Original comment by kendr...@circuitsix.com on 2 Nov 2014 at 2:22

GoogleCodeExporter commented 9 years ago

Original comment by ariya.hi...@gmail.com on 2 Nov 2014 at 4:48