Installing NPM / Nodejs on Mac Catalina failure


Topic: Installing NPM / Nodejs on Mac Catalina failure

mark-steven-au pro premium asked 5 years ago

**Expected behavior**

Load NPM and NodeJS following mdb installation guide https://mdbootstrap.com/education/react/installation-1-npm/ download and install node-v13.2.0 install itself appeared to work. make simple hello.js file as documented on page (console.log("Hello world from MDB"); Using terminal opened in same folder (used ls to check was in right folder) then node -v result v13.2.0 npm -v result 6.13.1 so appeared to be working and installed then following documentation node hello.js Result should be Hello World Actual behavior {\rtf1\ansi\ansicpg1252\cocoartf2511 ^

SyntaxError: Invalid or unexpected token at wrapSafe (internal/modules/cjs/loader.js:1043:16) at Module._compile (internal/modules/cjs/loader.js:1091:27) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1160:10) at Module.load (internal/modules/cjs/loader.js:976:32) at Function.Module._load (internal/modules/cjs/loader.js:884:14) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:67:12) at internal/main/run_main_module.js:17:47

Resources (screenshots, code snippets etc.)

Does someone have a work around to get this working? Suspect this new mac update is locking folders or files somewhere but not sure where. Thanks Mark


Bartłomiej Malanowski staff pro premium commented 5 years ago

How can we reproduce your issue?


mark-steven-au pro premium commented 5 years ago

Not sure. Currently I have wiped my Mac and installed fresh Catalina operating system 10.15.1 (19B88) Installed npm node etc versions show up as being installed yet cannot get npm start to work so far at least.


mark-steven-au pro premium commented 5 years ago

Next step installed "docker" and ran it with the intention of running inside container. on an impulse went back and ran node hello.js and it now works? So up and running. Not sure why but its up so good to go. Hope this helps someone else


Bartłomiej Malanowski staff pro premium commented 5 years ago

Could you please share your docker file with us? I'm running MDB React on Mac OS and everything is working


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Open

Specification of the issue
  • User: Pro
  • Premium support: Yes
  • Technology: MDB React
  • MDB Version: 4.22.1
  • Device: Mac Catalina
  • Browser: All
  • OS: CATALINA 10.15.1
  • Provided sample code: No
  • Provided link: Yes
Tags
3.4
Related topics