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
1
vote
0 answers

Some Images are not being loaded after running npm run build in vue

I finished my Vue app and ran npm run build to deploy the app. Everything seems to be fine. However, some of my images will not run. Four of my images render just fine. However, those four images are not in my img folder. On the console, I get this…
AJ Goudel
  • 339
  • 5
  • 14
1
vote
2 answers

"npm run build:css " can not work, while it is ok when I run the script self

I am doing a program, I meet some question when I use the npm script with Mac system; I have already install the node-sass globally, the package.json file is as follows: package.json it is not work when I run "npm run build:css",while the error the…
sunliying
  • 11
  • 1
  • 2
1
vote
0 answers

npm run script on a dependency from root level of a node module

I have a node_module foo, which has a dependency of bar. I want to npm run postinstall on bar node_module from foo directory. Is this possible and how with npm 2 or above? foo └── node_modules └── bar
Encore PTL
  • 8,084
  • 10
  • 43
  • 78
0
votes
0 answers

npm run dev command generate the errors

npm ERR! code ENOENT npm ERR! syscall open npm ERR! path C:\Users\admin\OneDrive\Desktop\Dhenish\NEXTJS\package.json npm ERR! errno -4058 npm ERR! enoent Could not read package.json: Error: ENOENT: no such file or directory, open…
0
votes
1 answer

why is my npm run dev command not working?

i am building a new project using refine and react i have downloaded all of the files and dependences using npm but when i try to open them by using npm run dev i get an error https://www.youtube.com/watch?v=k4lHXIzCEkM&t=80s im trying to do the…
0
votes
0 answers

npm throws "no such file or directory" error only when using "npm run" from another directory

Take the path /a/b/c/package.json /a/b/c/package-lock.json From /, this works without error: cd /a/b/c && npm install However, from /, this throws an error: cd /a/b/c && npm run build With the error being: npm ERR! code ENOENT npm ERR! syscall…
Tyler V.
  • 2,471
  • 21
  • 44
0
votes
0 answers

Vue Compiles but shows Blank Pages with Background colour only with no console error or JS error