Open mattWillis opened 8 years ago
@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?
@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!
@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.
@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.
@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!
I am really excited to check out your project! However, when running
npm start
ornpm 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?