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

NPM Install results in: Invalid package name #70

Closed
evelynDickinson opened this issue Apr 14, 2021 · 2 comments
Closed

NPM Install results in: Invalid package name #70

evelynDickinson opened this issue Apr 14, 2021 · 2 comments
Labels

Comments

@evelynDickinson
Copy link

evelynDickinson commented Apr 14, 2021

I've been using the Cartalyst stripe-laravel package for years now in my Laravel project with Composer. But we've just started working with NPM and I'm running into an issue with "npm install" throwing an error on the package name.

"cartalyst/stripe-laravel": name can only contain URL-friendly characters

npm install
npm ERR! code EINVALIDPACKAGENAME
npm ERR! Invalid package name "cartalyst/stripe-laravel": name can only contain URL-friendly characters

Here's the salient section of composer.json. If I remove the "cartalyst/stripe-laravel": "^13.0", line the npm install runs fine.

"require": {
    "php": "^7.4",
    "algolia/algoliasearch-client-php": "^2.4",
    "algolia/scout-extended": "^1.9",
    "arku/nova-multiselect": "dev-master",
    "cartalyst/stripe-laravel": "^13.0",
    "davidpiesse/nova-maintenance-mode": "^0.0.5",

Any ideas?

Thank you.

Evelyn

@GrahamCampbell
Copy link
Contributor

Don't put this package in your package.json file. This is a PHP package, and cannot be installed by NPM.

@evelynDickinson
Copy link
Author

Solved! Thank you so much.

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

No branches or pull requests

2 participants