Questions tagged [npm-run]

This runs an arbitrary command from a package's "scripts" object. If no "command" is provided, it will list the available scripts. run[-script] is used by the test, start, restart, and stop commands, but can be called directly, as well. When the scripts in the package are printed out, they're separated into lifecycle (test, start, restart) and directly-run scripts.

Reference:

183 questions
2
votes
1 answer

Run npm package installed on parent folder

I have folder structure of my project project-root |- sub-module1 |- sub-module2 and on project-root I have package.json with webpack in it so it gets installed on root of the project. Inside sub-module folders I have package.json where I have…
Alchnemesis
  • 479
  • 8
  • 23
2
votes
2 answers

Can't resolve 'react' when running "npm run"

My project has recently started complaining that it can't resolve react when I run the npm run dev script, which is: cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules…
2
votes
0 answers

Unable to build react app using npm run build - Exit status 2

I have created a react app using create-react-app, and when I first tried to build it using npm run build, it was working fine. However, after a couple of days of developing when I try to run the same command, I'm facing the following issue. @…
2
votes
1 answer

'react' - After run npm start it gives ./src/index.js Module not found: Can't resolve 'react' in 'C:\Users\...\src' error

In reactJs after run npm start it gives ./src/index.js Module not found: Can't resolve 'react' in 'C:\Users...\src' error. this is my package.js { "name": "client-app", "version": "0.1.0", "private": true, "dependencies": { …
Jayani Sumudini
  • 1,409
  • 2
  • 22
  • 29
2
votes
1 answer

Is a different version of tsc used when using npm run?

I have VS Code and a Node.js project using Typescript. In my package.json script block there is an item: "build-ts": "tsc" If I run plain tsc on the integrated terminal command line, the compilation is fine. But if I invoke npm run build-ts, it…
Old Geezer
  • 14,854
  • 31
  • 111
  • 198
2
votes
1 answer

How to run 'imagemin' plugin with npm run script?

How could i use the imagemin plugin after having downloaded it with npm? Is there a way to run the plugin through 'npm run ' whenever i need to?
Dimitris Leon
  • 73
  • 2
  • 6
1
vote
2 answers

while running npm run build "Creating an optimized production build... Failed to compile. Cannot read properties of undefined (reading 'includes')"

After completion of project ,i run npm run build but unable to build error showing . npm run build > pcrf-portal@0.1.0 build > react-scripts build Creating an optimized production build... Failed to compile. Cannot read properties of undefined…
Ashutosh
  • 21
  • 1
1
vote
0 answers

npm run build time Error in Laravel: "Module not found: Error: Package path ./dist/typed.cjs is not exported from package"

When I run npm run build command, the following error accours: ERROR in ./webpack/plugins/custom/typedjs/typedjs.js 3:15-49 Module not found: Error: Package path ./dist/typed.cjs is not exported from package…
khush
  • 55
  • 8
1
vote
0 answers

Failure to setup and build IFC.js project with npm

I'm triyng to get acquainted with IFC.js API. Starting from the start, I first tried to setup and build step by step the "hello world" tutorial. Installing the last dependancy failed with the following error message : npm install…
1
vote
1 answer

Tailwindcss Not Updating In Browser after Class Change

I'm running Tailwind with React but in order for me to see changes that I make to classNames I have to restart the server and run npm run start again to see the updates. Is there something I need to change in my scripts so that the browser updates…
1
vote
1 answer

npm run dev error (the project has older versions of vue, php etc)

so im in a project of my company who i work for but im having a problem of doing npm run dev, doesnt work. i already tried npm install nuxt, npm install node so i dont know what to do :( node:internal/crypto/hash:71 this[kHandle] = new…
vitoria
  • 37
  • 6
1
vote
1 answer

How do i build my angular application with `npm run build : production` instead of using `npm run build --production`?

Hi my angular application is building with the following command: npm run build --production and also it can be built with the following command: npm run build -- --c production But what I want is , I want to build my application with the :…
vijay s
  • 147
  • 1
  • 4
  • 15
1
vote
0 answers

Docker permission denied when running npm run build

I'm a newbie with docker. I'm trying to deploy a docker container to Azure. When running npm install everything works fine, but when npm run build is executed there is the following error message: sh: 1: tsc: Permission denied I already tried to…
tr1cked
  • 11
  • 1
1
vote
1 answer

npm run: command not found

When I try to run npm run dev or npm run build I get the following error: npm run dev > dev > next /usr/bin/bash: D:Tempdev-1656515078305.sh: command not found This is my current package.json: { "private": true, "scripts": { "dev":…
PlutoHDDev
  • 540
  • 7
  • 25
1
vote
1 answer

> Task :app:checkDebugAarMetadata FAILED error Failed to install the app. Make sure you have the Android development environment set up

My app was working fine but out of the blue this error occured and now I am not able to install the app on the emulator and the build always fails. I removed the app from the emulator and cleaned the cache but still not working. This is the output…
1 2
3
12 13