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

Whitesource.js not found #1

Open
punit9966 opened this issue Jun 25, 2018 · 0 comments
Open

Whitesource.js not found #1

punit9966 opened this issue Jun 25, 2018 · 0 comments

Comments

@punit9966
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant