Comments (3)
this line is telling us that it can't resolve the dependency @craco/craco
:
npm WARN Could not resolve dependency:
and craco
seems to be called as a peer dependency by craco-less
:
peer @craco/craco@"^6.0.0" from craco-less@2.0.0
so, the next question is, do you have @craco/craco
among dev dependencies in package.json? If you don't, it's a good idea to install it, npm i -D @craco/craco
.
Also, a very handy command — you can check in npm tree, is something installed by npm ls
— for example, npm ls @craco/craco
can tell you is it present in the node_modules and exactly where and why.
I don't think it's an npm
issue — we developers are responsible for installing missing dependencies and fixing any clashes.
from cli.
Yes, this is not an npm issue. npm is being asked to install an impossible tree and erroring.
The Exit handler not called
is a different issue altogether. See here for more info
from cli.
Thank you, yes, after further investigation, this error was that this tool create-react-app has been deprecated for some time, and some of its dependencies too.
I used Vite instead and it worked well.
Thanks all for the input.
from cli.
Related Issues (20)
- [BUG] git dependencies cause weird behaviour when git is not installed HOT 2
- [BUG] DevDependancy are installed in production when also marked as optional peerDependencies HOT 8
- [BUG] outdated does not report packages in unnamed workspaces HOT 1
- [BUG] Inconsistent audit json HOT 3
- [BUG] `npm i` does not set `["packages"][""]["name"]` in package-lock.json when there is no name in package.json while `npm audit fix` sets that to project's directory name HOT 7
- [BUG] `npm install` sometimes removes indirect dependencies if a parent node was deleted from the lockfile HOT 2
- [BUG] The .gitignore file is renamed to .npmignore when npm install HOT 2
- [BUG] The package-lock.json file depends on node_modules, which will cause the lock generated by npm i to be inconsistent after the lock file is deleted when some packages that depend on the system architecture (such as node-unix-socket) are installed again. HOT 3
- Start HOT 1
- [BUG] Project name was being added to dependencies automatically HOT 7
- Align npm packages to npm 10's node engine range
- Problem: CORS Error When Accessing Swagger API Deployed on AWS EC2 HOT 1
- Error: The programmatic API was removed in npm v8.0.0 HOT 7
- [BUG] npx fails to find local packages in project directory when using fnm HOT 1
- [BUG] `npm pack` marks the wrong files as executable
- npm error code ENOENT npm error syscall lstat npm error path C:\Users\hoang\AppData\Roaming\npm npm error errno -4058 npm error enoent ENOENT: no such file or directory, lstat 'C:\Users\hoang\AppData\Roaming\npm' npm error enoent This is related to npm not being able to find a file. npm error enoent npm error A complete log of this run can be found in: C:\Users\hoang\AppData\Local\npm-cache\_logs\2024-09-02T15_31_36_800Z-debug-0.log HOT 1
- [DOCS] arborist doesnt mention pnpm and yarn support
- [BUG] npm error Exit handler never called! HOT 7
- [BUG] <title> error in RUN npm install HOT 1
- [BUG] Failed to publish package to `registry.npmjs.org` HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cli.