Skip to content

test/parallel/test-npm-install.js fails (Node 4.4.4) #6648

@phw

Description

@phw
  • Version: 4.4.4
  • Platform: Linux
  • Subsystem: unknown

Running make testthe test test/parallel/test-npm-install.js fails.

=== release test-npm-install ===                                               
Path: parallel/test-npm-install
assert.js:90
  throw new assert.AssertionError({
  ^
AssertionError: npm install should run without an error
    at ChildProcess.handleExit (/home/phw/devel/nodejs4/src/node-v4.4.4/test/parallel/test-npm-install.js:40:10)
    at ChildProcess.<anonymous> (/home/phw/devel/nodejs4/src/node-v4.4.4/test/common.js:385:15)
    at emitTwo (events.js:87:13)
    at ChildProcess.emit (events.js:172:7)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
Command: out/Release/node /home/phw/devel/nodejs4/src/node-v4.4.4/test/parallel/test-npm-install.js

Here is the npm-debug.log generated.

I see multiple issues with this test:

  1. Obviously npm is expecting a package.json in the build directory, which isn't there.
  2. This npm call uses the previously installed node 4.4.3 for testing and not the newly compiled version in my source tree.
  3. This test even runs if I configured the build with the --without-npm flag (not sure whether this is indeed an issue or not).

Metadata

Metadata

Assignees

Labels

npmIssues and PRs related to the npm client dependency or the npm registry.testIssues and PRs related to the tests.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions