-
Notifications
You must be signed in to change notification settings - Fork 30k
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
doubt 'test-require-deps-deprecation' ? #17799
Comments
thanks, I tried with I have another question, I wrote the next:
I ran the tests and I got:
so for what reason happens it? |
So, the original problem here is the test is managing to load internal modules that it should not be able to load. This is usually because something somewhere has been configured to look in unusual places to load modules. The most common cause of this is setting
Thanks for your patience with this! |
ok, The outputs are: What's the output of echo $NODE_PATH? What's the output of ls $HOME/.node_modules? What's the output of ls $HOME/.node_libraries? What's the output of grep node_prefix config.gypi when run from the project root directory? What's the output of ls node_modules when run from the project root directory? |
That looks like maybe you accidentally pasted the input as the output of the command? |
yes I was wrong, the output is: |
Maybe you have a |
Can you try to add |
(Can you also confirm that |
Oh, yeah, that's probably where we should have started with troubleshooting. @bacriom Since we know it's one or both of two modules, you can (if you want) probably skip trying to add that to the test and instead run these from the command line in the project root directory:
and
When things work as expected, both of those return errors. However, in your case, if one or both return a string, that string will tell us where the file is that is messing up the test. :-D |
I got the next directory when I ran also, I got the same directory to "acorn/dist/walk" |
Cool, so the problem is that |
Thanks @Trott for your help, I'll remove |
when I run the tests, the console shows the next error:
=== release test-require-deps-deprecation ===
Path: parallel/test-require-deps-deprecation
assert.js:42
throw new errors.AssertionError(obj);
^
AssertionError [ERR_ASSERTION]: Missing expected exception.
at Object. (/home/ocrisostomo/node/test/parallel/test-require-deps-deprecation.js:43:10)
at Module._compile (module.js:660:30)
at Object.Module._extensions..js (module.js:671:10)
at Module.load (module.js:577:32)
at tryModuleLoad (module.js:517:12)
at Function.Module._load (module.js:509:3)
at Function.Module.runMain (module.js:701:10)
at startup (bootstrap_node.js:194:16)
at bootstrap_node.js:645:3
Command: out/Release/node /home/ocrisostomo/node/test/parallel/test-require-deps-deprecation.js
Command: out/Release/node /home/ocrisostomo/node/test/parallel/test-require-deps-deprecation.js
[04:09|% 100|+ 2131|- 1]: Done
Makefile:215: recipe for target 'test' failed
make: *** [test] Error 1
so It's normal or is there something that I have to do to run all tests?
The text was updated successfully, but these errors were encountered: