education icon indicating copy to clipboard operation
education copied to clipboard

node registerAdmin.js fails

Open francas opened this issue 7 years ago • 5 comments

I am following the EDX course and get the error below when trying to run node registerAdmin.js. What am I doing wrong?

auridas@auridas-VirtualBox:~/Projects/education/LFS171x/fabric-material/tuna-app$ node registerAdmin.js /home/auridas/Projects/education/LFS171x/fabric-material/tuna-app/node_modules/fabric-client/lib/Client.js:746 async _createOrUpdateChannel(request, have_envelope) { ^^^^^^^^^^^^^^^^^^^^^^

SyntaxError: Unexpected identifier at createScript (vm.js:56:10) at Object.runInThisContext (vm.js:97:10) at Module._compile (module.js:549:28) at Object.Module._extensions..js (module.js:586:10) at Module.load (module.js:494:32) at tryModuleLoad (module.js:453:12) at Function.Module._load (module.js:445:3) at Module.require (module.js:504:17) at require (internal/module.js:20:19) at Object. (/home/auridas/Projects/education/LFS171x/fabric-material/tuna-app/node_modules/fabric-client/index.js:25:18)

francas avatar Aug 11 '18 09:08 francas

I had the same problem and I fixed it. You must have:

  • node runtime LTS version 8.9.0 or higher, up to 9.0 ( Node v9.0+ is not supported )
  • npm tool version 5.5.1 or higher

Check It.

DamianLikszo avatar Aug 21 '18 21:08 DamianLikszo

same issue . not working

deb21 avatar Oct 03 '18 13:10 deb21

If you encounter problems in the course, it's always good to search the course Discussion forum to see if someone else found the solution. That's how I found this post by Indiefire & using nvm to get node v8.9.0 worked for me: https://courses.edx.org/courses/course-v1:LinuxFoundationX+LFS171x+3T2017/discussion/forum/i4x-LinuxFoundationX-LFS171x-course-3T_2017/threads/5b472605c5264809bd00139c

I've got a bunch of other feedback I want to submit for Chapter 7 for the effort to improve the edX course material in the import-edx-content branch, so I'll suggest to add that info to the troubleshooting tips.

nathalie-ckc avatar Oct 04 '18 18:10 nathalie-ckc

I had faced the same issue. Here is a utility application that does the same with ease. https://github.com/vishal3152/RegisterUser

vishal3152 avatar Nov 23 '18 10:11 vishal3152

Thanks, installing node 8.9.0 worked for me as well.

francas avatar Mar 31 '19 16:03 francas