4,273 questions
0
votes
0
answers
10
views
Have eslint be quiet when a glob pattern finds no files
Not sure if this is an eslint, yarn or glob question, but I think it is about glob patterns.
In package.json I have two "scripts" entries, one to run eslint --fix, the other to run mocha ...
0
votes
0
answers
8
views
couldn't find package "PACKAGE_NAME" on the "npm" registry
I am trying to build an docker image for one of the web apps. I have tried building the docker image in my local and also successfully pushed it after building the image. The issue I am facing is more ...
0
votes
2
answers
38
views
yarn install command not working properly
Yarn installation for react native project command yarn install not working
yarn start
node:internal/modules/cjs/loader:1050
throw err;
^
Error: Cannot find module '/Users/dynamicmethods/.yarn/...
0
votes
0
answers
35
views
How to force yarn install to use the current version of node
I have a back end and a front end that I'm developing locally. The backend uses node 22 and the front end uses node 21, as specified in their package.json.
I have both versions installed, and I ...
-3
votes
0
answers
39
views
Best way to work with local small modules on Typescript [closed]
I used to be a mobile developer, specially using Gradle to manage my dependencies and modules
Now I'm working with some Websites, and they share a lot of common code, so I wanted to have small modules ...
0
votes
0
answers
14
views
How to provide versions of a package depending on Fastify 4 and on Fastify 5 without duplicating code?
I'm implementing a package which has to start a Fastify server to respond to some requests. Most of its users will be using Node v20+, and so can use Fastify 5, but I don't want to make it a hard ...
1
vote
1
answer
21
views
getting error when trying to add a forked repository's specific commit with yarn
I'm trying to use a forked repository in a react app which dependencies are managed by yarn.
When adding "@react-oauth/google": "git+https://github.com/thanhnh2-miichisoft/react-oauth....
-3
votes
0
answers
48
views
/bin/sh: next: not found
So for some reason my docker container will not compose correctly. I get the "next not found" error in the title. However if I run docker run -it --entrypoint sh <my container name> ...
0
votes
0
answers
21
views
Tailwind style not applying in Yarn Monorepo re-usable common components
So we trying to integrate tailwind in our existing Yarn Monorepo structure. It's fine with the apps (works as expected), but got stuck with figuring out how re-usable components from @common can get ...
0
votes
0
answers
20
views
yarn installs old version of local package
I have a local package example-0.0.0.tgz and I installed with command yarn add ./local-packages/example-0.0.0.tgz.
Then I uninstalled example package, deleted yarn cache and node-modules. Then I made ...
1
vote
1
answer
30
views
Why 'docusaurus' is not recognized as an internal or external command?
I am trying to run a simple React project
yarn start
yarn run v1.22.22
docusaurus start
'docusaurus' is not recognized as an internal or external command,
operable program or batch file.
error ...
0
votes
0
answers
28
views
Switching Yarn Version
I have yarn 3.6.4 currently enabled on my mac.
I'm trying to change that to 1.22.22 for a certain project I'm working. I'm using the below.
yarn set version 1.22.22
I get this response
➤ YN0000: ...
0
votes
1
answer
37
views
Botpress v12 Dependencies Incompatible with Node Version
I am trying to set up the botpress v12 repo on my local machine.
I am facing issues during dependency resolution
This is my environment
OS: MacOS 15.1
Chip: Apple M2 Pro
Terminal: iTerm2 (arch: arm64)...
0
votes
2
answers
38
views
i couldnt yarn start the project and i get this error
./src/bootstrap.scss (./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-5-1!./node_modules/postcss-loader/src??postcss!./node_modules/resolve-url-loader??ref--6-oneOf-5-3!./node_modules/sass-loader/...
0
votes
1
answer
84
views
Yarn make with electron-forge not working, error on RPM
First of all i'm VERY new to coding and i'm just following and reading documentation
I'm making a bluesky electron app, but when using yarn make or npm run make I get the followed error:
❯ yarn make
...
-1
votes
1
answer
109
views
yarn not found in docker container after successful build
I navigate to root and run docker build frontend which finds a Dockerfile in the /frontend directory. Then I enter the docker container using docker exec frontend-1 sh and once in the container npm, ...
1
vote
0
answers
37
views
How to run a preinstall-like script in Yarn Berry?
I don't need to support this behavior as a library author or anything, but if I wanted to run something in my own project before yarn install, is there really no way to do that anymore since ...
0
votes
0
answers
26
views
DataTables.net version issue
In my current project, i'm using Symfony 7.1 with Webpack encore SF bundle.
I have Webpack 5.95.0.
I'm using Yarn 4.4.0 to manage my js package.
I'm using datatables.net 2.1.8.
After doing lot of test ...
0
votes
1
answer
223
views
How to fix the vulnerability - "Regular Expression Denial of Service (ReDoS) in micromatch"
I am new with JS coding. My website has Next JS framework.
My package.json file looks like the following
dependencies": {
"@azure/communication-email": "1.0.0",
"@...
0
votes
0
answers
57
views
Rails 7 chart.js upgrade from version 2.9.4 to 4.4.4 - Uncaught ReferenceError: Chart is not defined
I am trying to upgrade chart.js from version 2.9.4 to 4.4.4.
Javascript is managed by Yarn tool.
Package.json file
`"chart.js": "^4.4.4",`
Application.rb file had this path for ...
0
votes
0
answers
32
views
React with NPM packages and using their minified version in the final webpack prod build
I have a React project which uses an NPM based library. When producing the production build of the app with webpack the library takes up a large portion of the final bundle size.
For the production ...
1
vote
0
answers
179
views
drizzle-kit not able to find dirzzle-orm on cli
I'm using yarn workspaces to structure a monorepo style project. I recently upgraded to yarn v4 and am running into issues with running drizzle-kit seemingly not able to detect drizzle-rom when run ...
2
votes
2
answers
422
views
Expo EAS build failed suddenly
EAS build for android failing. It was working fine. But suddenly failed to build while yarn install dependencies
NB: No changes were made after the successful build-in of package.json. The project ...
0
votes
0
answers
30
views
Yarn not found after switching npm version with nvm
I open a terminal and I run:
nvm list
And I get:
v12.8.0
-> v21.7.1
This means that I have 2 versions installed but the active one is v21.7.1
If I run: yarn I get:
yarn install ...
0
votes
1
answer
30
views
Running eslint npm script with yarn not working
I have set up an ESLint script in package.json that should check for linting errors:
"lint": "eslint ./src/**/*.{js,ts,tsx} package.json",
The problem I have is that when I ...
0
votes
1
answer
300
views
yarn install: error [email protected]: The engine "node" is incompatible with this module. Expected version "20 || >=22". Got "16.20.2"
Two months ago all was OK, but now I get an error when tried to run yarn install:
verbose 33.786740568 Performing "GET" request to "https://registry.yarnpkg.com/os-homedir".
...
0
votes
0
answers
23
views
fossa-cli error: An exception occurred:RTextException PathPiece ""
I am running fossa-cli on a react app - and I keep getting this error at the end and I don't understand what it means.
Error: An exception occurred:RTextException PathPiece ""
I have the ...
0
votes
0
answers
131
views
Getting error with Sharp/Libvips when installing node modules in a next application
yarn install
yarn install v1.22.22
info No lockfile found.
[1/4] 🔍 Resolving packages...
warning eslint > @humanwhocodes/[email protected]: Use @eslint/config-array instead
warning ...
0
votes
0
answers
11
views
Changes to dist Folder Not Reflecting in Custom vue-business-hours Package After Modifying Source Code
I'm working in a project with vue and docker and the scripts in package.json has:
"scripts": {
"lint": "eslint --ext .js,.vue ./",
"test": "echo \&...
0
votes
1
answer
307
views
Upgrading multistage docker from yarn 1 to yarn modern
I have a Dockerfile written using old yarn
FROM node:20-alpine AS dependencies
WORKDIR /app
COPY package.json ./
COPY yarn.lock ./
RUN yarn install --production --frozen-lockfile && yarn ...
0
votes
0
answers
173
views
Caching node_modules of yarn in GitLab CI
stages:
- install
- build
- test
variables:
FF_USE_FAST_ZIP: 'true'
ARTIFACT_COMPRESSION_LEVEL: 'fast'
CACHE_COMPRESSION_LEVEL: 'fast'
cache:
paths:
- .yarn
- node_modules
...
0
votes
0
answers
25
views
Yarn resolution for loader-utils not processing
I have a react project with a dependency on [email protected]. Snyk flags a transitive vulnerability issue with [email protected] so I've added a yarn resolution to get the correct version. However,...
1
vote
1
answer
571
views
yarn command got stuck when running
I’m trying to run a project locally on my macOS using yarn cross-env NODE_ENV=development nest start --watch, but the command stays stuck without output or progress.
Environment:
macOS version: ...
0
votes
1
answer
182
views
RustDesk & Flutter web build errors | .dart files causing errors when attempting a web build
I'm having a lot of issues with the "flutter build web --release" command. This is for making a web build so that I may utilize the RustDesk web client services. I've been having a lot of ...
0
votes
0
answers
34
views
node-gyp Build Failing using Maven
I am trying to install an AngularJS based project using maven, but somehow its failing everytime. I can understand where the problem is, it is the proxy. But i don't know how to fix the issue. I just ...
0
votes
1
answer
399
views
Cannot run React in docker with Yarn 4 because of missing `react-scripts` packages, but works well natively (without docker)
I create a new ReactTs project from scratch, with Yarn 4.4.1 (Just started using yarn 4).
I created the project with the Create React App Client:
# In my /frontend directory
yarn create react-app . --...
0
votes
0
answers
8
views
Adding an environmental variable at the start of a package.json script prevents cd ./android from working - APP_ENV=production cd ./android
So I just noticed that if I have the following script in my package.json file:
"android:build:release": "APP_ENV=production cd ./android && ./gradlew clean ...
2
votes
3
answers
544
views
yarn install failing with "Integrity check failed ...", but checksums and hashes are correct
When I run yarn install on my project, I get:
$ yarn install
yarn install v1.22.22
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
error https://registry.yarnpkg.com/d3-color/-/d3-color-...
0
votes
1
answer
33
views
How to yarn start nextjs application on specific port with pm2?
How to yarn start nextjs application on specific port with pm2 process manager?
I googled for answer and found wrong suggestions
On production server I want to configure fail-over load balancer to ...
0
votes
0
answers
80
views
How to extend eslint config when using yarn workspaces
I have yarn workspaces in my repository in packages directory with 3 packages: shared and app-1, app-2.
In shared package i have .eslintrc.js config file with following rules:
module.exports = {
...
-1
votes
2
answers
76
views
How can I set a maximum number of errors in tsc?
I have a legacy project we are trying to move over to typescript. tsc --noEmit finds 85 errors and exits 2.
I want to do like tsc --noEmit --maxErrors=85 and have it exit 0. Then as we fix errors, ...
0
votes
0
answers
14
views
Not expected yarn.lock content changed after yarn install
Check details in the img bellow. The left is master branch and right is my local dev branch.
The difference is not expect since changes in package.json does not contain those npm packages.
Why cause ...
-1
votes
2
answers
58
views
Problem with Django and Python (the current path api/ did not match of these)
I am trying to set up a school journal based on Django and Python, but I can't do it because of a 404 page with a problem in the title.then Python part is backend and Node + Yarn + HTML is the ...
0
votes
1
answer
623
views
pnpm monorepo error with peer dependencies "Rollup failed to resolve import"
I have a monorepo project using turborepo. I was using yarn version 4 and everything was working perfectly fine but then I had the brilliant idea of changing from yarn to pnpm since it was recommended ...
0
votes
0
answers
26
views
Mono repo add cli binary of local package to node_modules after building/transpiling
In our mono repo we have a package with a CLI written in Typescript and gets built/transpiled for production packaging. As the package.json bin targets the dist folder, which gets created after ...
0
votes
0
answers
51
views
yarn link is causing issues
I maintain a library that's used by a project I'm working on. To develop a new feature in the library, I set up a symlink using yarn link, which connected the library's source to the project's ...
0
votes
0
answers
68
views
yarn publish does not work with new version of _auth (.npmrc)
We had this in .npmrc file in Home directory
_auth=XXXXXXXXXXXXXX
and publishing our internal package using yarn publish worked fine. Yarn version 1.22.
But now starting from npm 8 it seems they ...
0
votes
0
answers
58
views
Running application as application user
I notice that most of the React/Next.js/Yarn examples have you install everything to run as root, but that most people recommend running the app as an application user so that the application does not ...
0
votes
1
answer
432
views
Issues Installing Package from Private Azure DevOps Registry with Yarn
I'm trying to install a package from a private Azure DevOps registry using Yarn. I have configured my .yarnrc.yml file as follows:
npmScopes:
mycompany:
npmRegistryServer: https://pkgs.dev.azure....
0
votes
1
answer
96
views
More verbose output of native module build phase during yarn install
My yarn install --frozen-lockfile --verbose is getting hung at what seems to be the native module/gyp build phase and I can't figure out why.
I've tried export npm_config_loglevel=verbose before ...