Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid name: "@cloudfour/hbs-helpers" #81

Open
mattWillis opened this issue Jun 14, 2016 · 5 comments
Open

Invalid name: "@cloudfour/hbs-helpers" #81

mattWillis opened this issue Jun 14, 2016 · 5 comments

Comments

@mattWillis
Copy link

I am really excited to check out your project! However, when running npm start or npm install it bombs out when trying to install the @cloudfour/gulp-tasks and @cloudfour/hbs-helpers modules because of an invalid module name.

npm ERR! Darwin 15.4.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "i"
npm ERR! node v5.6.0
npm ERR! npm v3.6.0

npm ERR! Invalid name: "@cloudfour/hbs-helpers"

I am using a Mac Mini (late 2014) on OS X 10.11.4 I also tried installing using node v4.0.0 with the same problem.

Am I the only one running into this issue?

@erikjung
Copy link
Contributor

@mattWillis This appears to be a known problem with npm, based on some similar issues.

Can you try installing that package by itself?

npm install @cloudfour/hbs-helpers

Also, are you by chance behind a proxy or using an internal npm registry?

@mattWillis
Copy link
Author

@erikjung thanks for getting back to me. I tried installing the packages individually as well with no luck. Yeah also I saw the issue you posted, it seems to be an error with the "@" symbol. To test this I ran an npm init and tried to include an "@" in the package name and received the following: Sorry, name can only contain URL-friendly characters.

Do you mind if I ask why Cloud Four is using that naming scheme? It seems like removing the symbol would solve the problem. Oh, also, I am not currently behind a proxy or using an internal npm registry. Thanks again for your quick response!

@erikjung
Copy link
Contributor

@mattWillis

Do you mind if I ask why Cloud Four is using that naming scheme? It seems like removing the symbol would solve the problem.

This is the naming scheme for scoped packages:
https://docs.npmjs.com/getting-started/scoped-packages

(See the above URL regarding npm init)

We decided to scope mainly because the tasks and helpers are catered very much to our needs and weren't initially intended to be standalone packages.

@erikjung
Copy link
Contributor

@mattWillis

We'll look into how others have resolved the sporadic issues with scoped names.

One possible workaround you can try is to install from the repository instead of the npm registry:

npm install --save-dev cloudfour/core-hbs-helpers.git

(sudo might be needed if you get permission-related errors.)

The package name will be the same, so this might not resolve the problem, but it's worth a shot.

@mattWillis
Copy link
Author

@erikjung Sorry for the delay in getting back to you! I have tried to install the package using your suggested method but still am getting: Invalid name: "@cloudfour/hbs-helpers"

Bummed that I can't try out your project as it seems like it would be a great tool!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants