I have just created a new laravel application to implement a chat app. I wanted to scallfold the application using bootstrap but am getting this error :
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/33998 - Not found
npm ERR! 404
npm ERR! 404 '33998@*' is not in this registry.
npm ERR! 404
How can i solve it?
I tried running composer update
to see if im missing some dependencies.
I was wrong.
I also runnpm install && npm run dev
it still did not work
CodePudding user response:
Try to run these commands:
npm config set registry http://registry.npmjs.org
npm -g install npm
npm cache clean -f
After that try to run your project with:
npm run dev
CodePudding user response:
This error is just because of the package 33998 could not be found in the npm registry.
For solution you need to install bootstrap package in your application manually.
For installing BootStrap Use
npm install bootstrap
Also clean the cache of npm forcefully by
npm cache clean --force
Also check the latest npm version and update it if it was to old.
npm -v
npm install -g npm