node-modules Questions

6

Solved

I recently updated my Node Package Manager in accordance with this post. However, now when I create a new Next.js app and run it using npm run dev, I get the following error: error - ./node_modules...
Onshore asked 27/7, 2022 at 18:31

5

Solved

I have created in folder src/modules/my-module/ which has package.json and defined the main file which exports everything we need. I can import from it now import {A} from '../../modules/my-module...
Fils asked 11/12, 2018 at 1:50

5

We have a node app that we are trying to deploy through Azure Pipelines. It works fine locally. When the pipeline runs, it fails on the build step with this error immediately after the tsc command ...
Coprophilia asked 24/5, 2023 at 20:21

1

Here are some related questions: When using yarn workspaces, how to force a package to be installed in the relative node_modules? NPM 7 Workspaces - Multiple node_modules? Should I have to use no-h...
Oubre asked 14/2, 2023 at 10:13

4

Solved

Related: single node_modules folder for multiple projects If npm install -g everything is not recommended, and I do not want to link individual modules, can I possibly symlink <some project>...
Valorize asked 27/3, 2016 at 1:7

2

Solved

I'm trying to execute the following code using JavaScript modules. I know that the default for NodeJS is CommonJS. I have my code working locally, but when I want to run it as modules in the lambda...
Dahliadahlstrom asked 24/5, 2022 at 7:45

2

I try use npm 7 workspaces "workspaces": { "packages": [ "packages/apps/*", "packages/components", ], and after install I see in my package.json "...
Bebop asked 13/10, 2021 at 10:13

2

I am trying to use the NPM version of canvas as well as an NPM module to merge images. However it Canvas seems to not want to load. I get an error everytime I require it and run the script. This an...
Syncretism asked 13/1, 2021 at 15:24

18

Solved

This problem appeared after an update, sudo apt upgrade, on Ubuntu 20.04 (Focal Fossa). Previously, I worked on versions Node.js v18.0.0 and npm 8.7.0, but after the update there was a problem. I r...
Roadhouse asked 5/7, 2022 at 9:10

2

Solved

I updated the react-native dependency to [email protected] and got this error. I tried to revert back to a previous version @0.71.0 by editing the package.json file, deleting the node_modules ...
Pick asked 29/7, 2023 at 12:41

7

Solved

I'm trying to install a package using yarn, but I keep getting 'Cannot find module' error. It gives this error when I try to run any command using yarn in this folder. Notably, the error started oc...
Lacee asked 3/2, 2022 at 18:12

3

I am trying to use perf_hooks from the nodeJS Performance API in my React Native project. Below is my code import {performance} from 'perf_hooks'; export const measure = ( target: Object, proper...

1

I developed a custom React component library to be consume on a private npm. All my components are Typescript React Class Components and in many I used interfaces to declare which props are optiona...
Extravehicular asked 3/5, 2021 at 21:11

5

I'm having troubles with yarn but only on one computer. When I run yarn install some packages can't be downloaded and I have this error : ESOCKETTIMEDOUT : At first I just thought that there were ...
Jaqitsch asked 25/4, 2019 at 9:15

8

Solved

I need to provide the mysql connection for modules. I have a code like this. var express = require('express'), app = express(), server = require('http').createServer(app); var mysql = require('my...
Lanti asked 30/5, 2015 at 11:43

11

Solved

After reading the .dockerignore documentation, I'm wondering if there is a way to test it? Examples **/node_modules/ How do I check my dockerfile ignore the correct files and directories?
Salts asked 14/8, 2016 at 21:13

5

Solved

I have tried to create a docker image of my backend API. but getting errors. I have googled about it, and everyone who has the same issue had to add node_module on the .dockerignore file. I already...
Pyroelectricity asked 7/7, 2022 at 1:49

7

I created a React App using npx create-react-app my_app but when I am running the app using npm start, I am getting the following error, I tried installing the package '@babel/plugin-proposal-priv...
Aliquot asked 26/5, 2023 at 16:43

40

Solved

I read how TypeScript module resolution works. I have the following repository: @ts-stack/di. After compiling the directory structure is as follows: ├── dist │   ├── annotations.d.ts │   ├── anno...
Karlkarla asked 22/12, 2016 at 22:28

5

I want to do an upgrade from Angular 7 to 8. I have installed @angular-devkit/[email protected], uninstalled et reinstalled node modules, but I always got this problem : Cannot find module 'we...
Climactic asked 20/10, 2020 at 10:23

6

I have no admin rights in my windows machine. Can I install NVM without admin rights? I tried using the environment variable path setup, but its not working in my case.

3

Solved

After running 'npm start' on my localhost, I am getting the following error: ./node_modules/chart.js/dist/chart.js 695:18 Module parse failed: Unexpected token (695:18) File was processed with thes...
Darmit asked 15/11, 2022 at 11:19

2

I know that I can get a list of my direct dependencies via npm ls --depth=0 --only=production which produces something like this [email protected] /code/my-app ├── [email protected] ├─...
Bixby asked 2/4, 2018 at 20:58

3

Solved

I am running into a bug when trying to run 'npm start' for a react app. My app had been running mostly as I expected while developing, however I ran into a bug that required me to update my node ve...
Morganica asked 27/1, 2022 at 4:5

11

Solved

I am trying to deploy functions to firebase using my Mac M1, for which it was required to do an npm install to install packages in node_modules/. I am getting this error: Error: 'darwin-arm64v8' bi...
Maltz asked 17/8, 2021 at 8:37

© 2022 - 2025 — McMap. All rights reserved.