Replies: 1 comment 3 replies
-
Hey :), it's looks more like a issue with your local node/nom setup and not really connect with faker it self. If you like I can provide your some beginner tutorial for node and nom/yarn |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Installing "@faker-js/faker" and getting it to work with Node.js on SublimeText. (I am a beginner level with Sublime and with Node.js)
In Command Prompt (cmd), I was getting error messages when installing and when trying to run this js-file with node. It took me 8-10 hours to get it to work, so I wanted to share if anyone else had this issue.
ISSUE 1: I could not run the installation in the Command Prompt (cmd):
MY SOLUTION 1: Run Command Prompt (cmd) as Administrator. (Right click the icon to get a menu that gives you and option to "Run as Admin." And, then run
ISSUE 2: In SublimeText, I get and error trying to run this file 'app1.js' with Node.js. (In SublimeText, I have selected the Tools/Build System/node. And running the script with Ctrl+B)
SUBLIME TEXT CONSOLE ERROR MESSAGE 2:
MY SOLUTION 2:
I noticed that the 'faker' module was not saved with the other Node.js modules at C:\Program Files\nodejs\node_modules\ or in npm modules at npm\node_modules)
I searched my computer for '*faker*'. I located a folder '@faker-js' at C:\Windows\System32\node_modules.
I updated my js-code to:
I saved the file and ran my file in Sublime Text with Tools/Build (Ctrl+B).
And it worked!!!
Here is the link to GitHub for @faker-js/faker
https://github.com/faker-js/faker
Beta Was this translation helpful? Give feedback.
All reactions