MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    npm install error

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    3 Posts 2 Posters 762 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Offline
      seongwoolee
      last edited by seongwoolee

      I had a magic mirror folder (BeautyM) that It was installed 4 months ago.
      Updated to the latest version with the command “git pull origin master”. It works very well.

      And we created a new folder (BeautyBeauty). ever since
      “git init
      git remote add origin https://github.com/ENTITYSmartMirror/BeautyBeauty.git
      git pull origin master
      npm install
      npm start”
      I ran the command.
      However, the MMM_Globe module did not work in this folder (BeautyBeauty).
      I don’t know why folder(BeautyM) works well but folder(BeautyBeauty) didn’t work.

      0_1571771857185_a6455d02-d486-4984-8a47-03d9951e69ff-image.png
      This image is the result of a “git log” of each of the two folders. So the code for both folders is the same.

      0_1571772057017_c276f1e3-c87c-4048-9c79-6d1390a890ea-image.png
      This image is the result of the “npm start” of each twofolders.
      The red box is an error.

      error code is
      "ERROR! Could not validate main module js file.
      C:\Users\이지원\Desktop\BeautyBeauty\modules\MMM-Globe\MMM-Globe.js:84
      getDom: async function() {
      ^^^^^^^^
      SyntaxError: Unexpected token function
      at Object.exports.runInThisContext (vm.js:76:16)
      at Module._compile (module.js:528:28)
      at Object.Module._extensions…js (module.js:565:10)
      at Module.load (module.js:473:32)
      at tryModuleLoad (module.js:432:12)
      at Function.Module._load (module.js:424:3)
      at Module.require (module.js:483:17)
      at require (internal/module.js:20:19)
      at Class.loadModuleDefaultConfig (C:\Users\이지원\Desktop\BeautyBeauty\modules\MMM-Remote-Control\node_helper.js:297:30)
      at fs.stat.err (C:\Users\이지원\Desktop\BeautyBeauty\modules\MMM-Remote-Control\node_helper.js:251:26)
      "

      I think there’s a problem with the “npm install.” Because BeautyM did “npm install” about 4 months ago, but BeautyBeauty did “npm install” today.

      An error occurs in folder(BeautyBeauty). But it works well in folder(BeautyM).
      0_1571773553316_2cdf53a4-630c-4973-ba08-e0d485c314f5-image.png

      0_1571773608876_f58f0d43-28fb-48ca-83a0-69692061faca-image.png

      The code for both folders is clearly the same. Also, “git status” is the same.
      Tell me why.

      S S 2 Replies Last reply Reply Quote 0
      • S Offline
        seongwoolee @seongwoolee
        last edited by

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @seongwoolee
          last edited by

          @seongwoolee the version of nodejs does not support async maybe?

          can u tell us output of

          node -v
          and 
          npm -v
          

          after update (git pull, npm install) , you would also have to run npm install in any module folder that has a package.json file, to update its dependencies

          what version is the original beautym package? see the version: ??? in the package.json file

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • 1 / 1
          • First post
            Last post
          Enjoying MagicMirror? Please consider a donation!
          MagicMirror created by Michael Teeuw.
          Forum managed by Sam, technical setup by Karsten.
          This forum is using NodeBB as its core | Contributors
          Contact | Privacy Policy