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.

    PM2 install not working on Mac mini

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    4 Posts 2 Posters 1.6k 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.
    • StoffbeuteluweS Offline
      Stoffbeuteluwe Project Sponsor
      last edited by

      Patricks-Mini:~ patrickhahn$ sudo npm install -g pm2
      Password:
      /usr/local/bin/pm2 -> /usr/local/lib/node_modules/pm2/bin/pm2
      /usr/local/bin/pm2-dev -> /usr/local/lib/node_modules/pm2/bin/pm2-dev
      /usr/local/bin/pm2-runtime -> /usr/local/lib/node_modules/pm2/bin/pm2-runtime
      /usr/local/bin/pm2-docker -> /usr/local/lib/node_modules/pm2/bin/pm2-docker
      
      > fsevents@1.2.9 install /usr/local/lib/node_modules/pm2/node_modules/fsevents
      > node install
      
      node-pre-gyp WARN Using needle for node-pre-gyp https download 
      node-pre-gyp WARN Pre-built binaries not installable for fsevents@1.2.9 and node@10.15.3 (node-v64 ABI, unknown) (falling back to source compile with node-gyp) 
      node-pre-gyp WARN Hit error EACCES: permission denied, mkdir '/usr/local/lib/node_modules/pm2/node_modules/fsevents/lib' 
      gyp WARN EACCES user "root" does not have permission to access the dev dir "/Users/patrickhahn/.node-gyp/10.15.3"
      gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/pm2/node_modules/fsevents/.node-gyp"
      gyp WARN install got an error, rolling back install
      gyp WARN install got an error, rolling back install
      gyp ERR! configure error 
      gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/pm2/node_modules/fsevents/.node-gyp'
      gyp ERR! System Darwin 17.7.0
      gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/usr/local/lib/node_modules/pm2/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node" "--module_name=fse" "--module_path=/usr/local/lib/node_modules/pm2/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64" "--napi_version=3" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v64"
      gyp ERR! cwd /usr/local/lib/node_modules/pm2/node_modules/fsevents
      gyp ERR! node -v v10.15.3
      gyp ERR! node-gyp -v v3.8.0
      gyp ERR! not ok 
      node-pre-gyp ERR! build error 
      node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/usr/local/lib/node_modules/pm2/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node --module_name=fse --module_path=/usr/local/lib/node_modules/pm2/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64 --napi_version=3 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v64' (1)
      node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/pm2/node_modules/fsevents/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
      node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:189:13)
      node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:970:16)
      node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
      node-pre-gyp ERR! System Darwin 17.7.0
      node-pre-gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/pm2/node_modules/fsevents/node_modules/node-pre-gyp/bin/node-pre-gyp" "install" "--fallback-to-build"
      node-pre-gyp ERR! cwd /usr/local/lib/node_modules/pm2/node_modules/fsevents
      node-pre-gyp ERR! node -v v10.15.3
      node-pre-gyp ERR! node-pre-gyp -v v0.12.0
      node-pre-gyp ERR! not ok 
      Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/usr/local/lib/node_modules/pm2/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node --module_name=fse --module_path=/usr/local/lib/node_modules/pm2/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64 --napi_version=3 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v64' (1)
      npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/pm2/node_modules/fsevents):
      npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 install: `node install`
      npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
      
      + pm2@3.5.1
      added 309 packages from 257 contributors in 33.868s
      Patricks-Mini:~ patrickhahn$ 
      
      

      can anybody help me please

      Thanks

      S 1 Reply Last reply Reply Quote 0
      • S Away
        sdetweil @Stoffbeuteluwe
        last edited by sdetweil

        @Stoffbeuteluwe

        Really need to fix this

         EACCES user "root" does not have permission to access the dev dir "/Users/patrickhahn/
        

        The assumption is that root can access everything

        See

        https://github.com/nodejs/node-gyp/issues/454
        

        Need an extra parm on sudo command

        sudo npm install --unsafe-perm --verbose -g
        

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        S 1 Reply Last reply Reply Quote 0
        • S Away
          sdetweil @sdetweil
          last edited by

          I have a new install script in test. I will check for Mac and add this parm

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 1
          • StoffbeuteluweS Offline
            Stoffbeuteluwe Project Sponsor
            last edited by

            Ok thanks

            1 Reply Last reply Reply Quote 0
            • 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