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

Whitesource.js not found #1

@punit9966

Description

@punit9966

when task is configured with latest node.js & npm, it throws below error,

Running "whitesource:web" (whitesource) task
module.js:544
    throw err;
    ^

Error: Cannot find module '/Users/xxx/MyProjects/projDirectory/node_modules/grunt-whitesource/node_modules/whitesource/bin/whitesource.js'
    at Function.Module._resolveFilename (module.js:542:15)
    at Function.Module._load (module.js:472:25)
    at Function.Module.runMain (module.js:682:10)
    at startup (bootstrap_node.js:191:16)
    at bootstrap_node.js:613:3
Error: Whitesource failed to run

This happens because execution script of the task is contains the absolute hard coded path for the dependent script and is not per latest node standards

node ./node_modules/grunt-whitesource/node_modules/whitesource/bin/whitesource.js run

this line should be modified and fixed to support newer versions of npm and node

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions