Impossible to create a new project with Meteor 1.6


#1

Hello Meteor Mentors!

I have just uninstalled previous versions of Meteor and downloaded 1.6. And now I cannot create any new projects. I’m using Ubuntu 16.04. Below is my Terminal session. (I’ve had to kill most of the links in order to be allowed to post).

Thanks in advance for any workarounds,

James


$ curl https://install.meteor.com/ | sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 7782 0 7782 0 0 6564 0 --:–:-- 0:00:01 --:–:-- 6567
Downloading Meteor distribution
######################################################################## 100.0%

Meteor 1.6 has been installed in your home directory (~/.meteor).
Writing a launcher script to /usr/local/bin/meteor for your convenience.
This may prompt for your password.
[sudo] password for blackslate:

To get started fast:

$ meteor create ~/my_cool_app
$ cd ~/my_cool_app
$ meteor

Or see the docs at:

docs[dot]meteor[dot]com

$ meteor create ~/my_cool_app
/home/blackslate/.meteor/packages/meteor-tool/.1.6.0.1whvdik.oongk++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/meteor-promise/promise_server.js:218
throw error;
^

Error: Error: Could not install npm dependencies for test-packages: Command failed: /home/blackslate/.meteor/packages/meteor-tool/.1.6.0.1whvdik.oongk++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/npm install
Unhandled rejection Error: EACCES: permission denied, mkdir '/home/blackslate/.npm/_cacache’
Unhandled rejection Error: EACCES: permission denied, mkdir '/home/blackslate/.npm/_cacache’
npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:
npm ERR! <https_github.com_npm_npm_issues>
Unhandled rejection Error: EACCES: permission denied, mkdir '/home/blackslate/.npm/_cacache’
Unhandled rejection Error: EACCES: permission denied, mkdir '/home/blackslate/.npm/_cacache’
npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:
npm ERR! <https_github_com_npm_npm_issues>

at Object.error (/tools/utils/buildmessage.js:430:11)
at /tools/cli/default-npm-deps.js:32:20
at /tools/utils/buildmessage.js:334:18
at exports.EnvironmentVariable.withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:333:36
at exports.EnvironmentVariable.withValue (/tools/utils/fiber-helpers.js:89:14)
at Object.enterJob (/tools/utils/buildmessage.js:324:26)
at Object.install (/tools/cli/default-npm-deps.js:27:27)
at Command.func (/tools/cli/commands.js:799:36)
at /tools/cli/main.js:1522:15

#2

Looks like a permissions issue given these lines:

Unhandled rejection Error: EACCES: permission denied, mkdir '/home/blackslate/.npm/_cacache’

Can you check the permissions on ~/.npm and subfolders?

Likely culprit is if you’ve ever run npm with sudo or as root before.