No such file or directory ... / meteor / examples

I am trying to create a new project using Meteor but I get this message:

user$ meteor create testProject1

fs.js:665
  return binding.readdir(pathModule._makeLong(path));
             ^
Error: ENOENT, no such file or directory '/usr/local/lib/node_modules/meteor/examples'
at Object.fs.readdirSync (fs.js:665:18)
at Object.Commands.push.func (/usr/local/lib/node_modules/meteor/app/meteor/meteor.js:156:32)
at main (/usr/local/lib/node_modules/meteor/app/meteor/meteor.js:631:20)
at Object.<anonymous> (/usr/local/lib/node_modules/meteor/app/meteor/meteor.js:634:1)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)

      

Any ideas on what is wrong and / or how to fix it?

Thank!

+3


source to share


1 answer


I just ran into this problem and found this question looking for an answer.

The error appeared when I tried to use meteor from npm:

npm uninstall -g meteor

      



Installed it from my server as stated on the official site:

curl https://install.meteor.com/ | sh

      

And the problem was solved

+3


source







All Articles