This repository was archived by the owner on Dec 17, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Whitesource.js not found #1
Copy link
Copy link
Open
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels