Skip to content

Instantly share code, notes, and snippets.

@ORESoftware
Last active December 13, 2019 23:01
Show Gist options
  • Select an option

  • Save ORESoftware/0bf33272b61d278b9a1e to your computer and use it in GitHub Desktop.

Select an option

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
Copy Markdown

Thanks, the comment on the windows version is incorrect.

@ORESoftware
Copy link
Copy Markdown
Author

what's wrong with the windows version?

@asashour
Copy link
Copy Markdown

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
Copy Markdown
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