Skip to content

Instantly share code, notes, and snippets.

@ORESoftware
Last active December 13, 2019 23:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ORESoftware/0bf33272b61d278b9a1e to your computer and use it in GitHub Desktop.
Save ORESoftware/0bf33272b61d278b9a1e to your computer and use it in GitHub Desktop.
Viking vs Tudor part II
// windows version
const Viking = require('C:\\Users\\denman\\WebstormProjects\\viking'); //we have published viking on NPM and then installed it in the local project with the --save option
new Viking().start();
// *nix version
const Viking = require('/Users/denman/WebstormProjects/viking'); //we simply point to the root of the local project, which will find the package.json file which in turn points to your index.js file
new Viking().start();
@asashour
Copy link

Thanks, the comment on the windows version is incorrect.

@ORESoftware
Copy link
Author

what's wrong with the windows version?

@asashour
Copy link

I mean the comment:

It is currently:

//we have published viking on NPM and then installed it in the local project with the --save option

It should be:

//we simply point to the root of the local project, which will find the package.json file which in turn points to your index.js file

@ORESoftware
Copy link
Author

ORESoftware commented Dec 13, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment