Skip to content
This repository was archived by the owner on Jul 24, 2019. It is now read-only.
This repository was archived by the owner on Jul 24, 2019. It is now read-only.

npm sometimes breaks module-loading during the install phase on windows #302

@nicks

Description

@nicks

This is a tracking bug for problems that we've seen where node module-loading does not work during NPM's install phase on windows. Users typically get an error that looks like:

phantomjs@1.9.15 install C:\Users\name\AppData\Roaming\npm\node_modules\phantomjs
node install.js
module.js:340
throw err;
^
Error: Cannot find module 'C:\Users\name\Documents\install.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:3

We're pretty confident that this is an NPM bug, or caused by some misconfiguration of the environment (NPM pulls a lot of random stuff from the environment). We probably can't workaround this in the phantomjs installer even if we wanted to, because it's not even able to open the phantomjs installer code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions