cartalyst / stripe-laravel

Cartalyst Stripe package integration for Laravel.
BSD 3-Clause "New" or "Revised" License
335 stars 57 forks source link

NPM Install results in: Invalid package name #70

Closed evelynDickinson closed 3 years ago

evelynDickinson commented 3 years ago

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 commented 3 years ago

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

evelynDickinson commented 3 years ago

Solved! Thank you so much.