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

@request/promise-core npm install error #141

Closed
tehChromic opened this issue Aug 4, 2016 · 6 comments
Closed

@request/promise-core npm install error #141

tehChromic opened this issue Aug 4, 2016 · 6 comments

Comments

@tehChromic
Copy link

I can't install request-promise

npm install --save request-promise

produces:

Invalid name: "@request/promise-core"

npm ERR! node v6.2.0
npm ERR! npm v3.8.9

@analog-nico
Copy link
Member

Do you happen to use an NPM proxy? We discussed in #137 how to fix that.

Other than that I have not enough info about your environment to guess the cause. However, it is most likely about the support of scoped packages. Maybe that helps you with further googling... Let me know if you have more to tell!

@cabrinoob
Copy link

cabrinoob commented Aug 8, 2016

Hi,
I have the same problem here. It's working perfectly on my local machine, but when I try to install it through a Dokerfile I have the 404 error

In my Dockerfile I tried to call like this :

FROM readytalk/nodejs

WORKDIR /home/nodeapp
ADD package.json /home/nodeapp
RUN npm config set "@request:registry" https://registry.npmjs.org/
RUN npm install
ADD . /home/nodeapp

EXPOSE 8080
CMD ["node","server.js"]

And in my package.json I have these dependencies :

"dependencies": {
"async": "^2.0.1",
"body-parser": "^1.15.2",
"express": "^4.14.0",
"request": "^2.74.0",
"request-promise": "^4.1.0"
}

But I always have the 404 error.

@analog-nico
Copy link
Member

I just published request-promise@4.1.1 which fixes this issue for good.

The number of bug reports in this issue and elsewhere piled up way too high so I renamed @request/promise-core to request-promise-core. Sorry guys, I didn't anticipate that scoped packages produce that much hassle...

@cabrinoob
Copy link

No problem, thanks a lot! ;)

@xinsamwan
Copy link

@analog-nico
I'm new to nodejs, I try to npm install parse-server, but I have this error Invalid name: "@request/promise-core", do you know how I can fix it?

@analog-nico
Copy link
Member

@xinsamwan Just upgrade to request-promise to version 4.1.1.

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

4 participants