nativescript-nodeify
nativescript-nodeify copied to clipboard
Getting an error related to __dirname
I am having an issue trying to run the demo npm run demo.ios. I am getting a lot of Cycle link found. errors. It may be related to the version of node.js or npm.
I was going to patch it to work but I need some clarification first.
It seems that __dirname in patch-npm-packages is actually the working directory (instead of the directory that the script resides in). However, it is unclear what you assumed that __dirname would be when you authored the script. For instance, which directory were you trying to load here?
getPackageJsons(path.join(__dirname, ".."));
IIRC that __dirname should be the folder of this plugin in your project, and .. is the node_modules folder (sibling of the app folder).