All Questions
Tagged with npm-scripts javascript
172 questions
1
vote
3
answers
47
views
How do I run 2 different functions from 1 file with 2 different command line prompts in Node.js?
I have a .js file in my project that imports an NPM package and has 2 functions that use that package:
//replacePaths.js
import {replaceInFile} from 'replace-in-file';
async function replace() {
...
0
votes
0
answers
41
views
Npm script can't run with terminal commands
[email protected] move-public
mv ./dist/* ../server/public
'mv' is not recognized as an internal or external command,
operable program or batch file.
I tried this "move-public": "move .\...
2
votes
1
answer
115
views
How to block npm install in nested workspace folders?
I'm using npm workspaces.
So the app's structure is
.
+-- package.json
-- packages
+-- a
| -- package.json
-- b
-- package.json
The npm install script should be executed from ...
-1
votes
2
answers
306
views
npm start failed at start: `react-scripts start`
I was trying to push to git but my files were too large. Tried removing the node_modules folder and then running npm start but now I am getting this error:
Invalid options object. Dev Server has been ...
0
votes
0
answers
137
views
I am having issues making bubbly button "bubble" javascript
the button appears and it is styled using CSS, that is ok however onClick it does not call the script, that is my best guess, have been trying to make it happen with no luck
I do not know if my script ...
0
votes
0
answers
72
views
npm works only one time on one time connection to internet, requires frequent re-connection
Detailed Scenario
Connect to internet(wifi) on PC(pop-os)
Run an npm command - works fine
Run another npm command - stuck on (⠂⠂⠂) ⠧ idealTree:gdtot_data: sill idealTree buildDeps
Disconnect and ...
1
vote
0
answers
2k
views
Javascript bot to check visa appointment not working and I don't know how to fix it
I'm trying to make a bot that takes my credentials and checks the availability of visa interview appointments for my city's US consulate, but it's my first Javascript app and I'm running around like a ...
2
votes
2
answers
829
views
React Idle Timer: Video Player Activity Detected as Idle
I am currently using the react-idle-timer library in my React application to track user inactivity. However, I'm facing an issue where the video player activity is detected as idle by the library.
I ...
0
votes
0
answers
108
views
Why I keep getting Mix manifest not found while integrating ES6 app into a laravel project
This is the first time trying to integrate an app written in vanilla ES6 into my Laravel Project.
I installed all the dependencies that required by the JS app into my Laravel app and copied the hole ...
4
votes
2
answers
13k
views
Node script with Typescript and ts-node: can't get to import anything, no matter the configuration and package type
I have a React Typescript project that has multiple files that share a structure. The code is similar, but quite different between them at some points, and it's pretty common to have to copy-paste ...
-1
votes
2
answers
2k
views
How do i fix npm run start?
I'm using react and I'm trying to run my app
When I run "npm run start" it shows this error
npm ERR! Missing script: "start"
npm ERR!
npm ERR! Did you mean one of these?
npm ERR! ...
1
vote
1
answer
2k
views
Uncaught TypeError: Cannot set property once of [object Object] which has only a getter
`Uncaught TypeError: Cannot set property once of [object Object] which has only a getter at HTMLDivElement.addEventListener (polyfills.js:1:146664)
Facing this above issue while upgrading angular ...
-1
votes
2
answers
260
views
I encountered a problem while doing Npm build in vanilla js. Please take a look [closed]
I was learning JavaScript and kind of ran into problem that said like this :
Error Image
Here's my package.json
enter image description here
So to explain, this is my vanilla js where i have ...
0
votes
1
answer
420
views
My discord.js bot wont start when I run "npm run start"
When I try and run npm run start in my console for my discord.js bot I have no idea why it won't work.
(here is my package.json)
{
"name": "spinier-bot",
"version": &...
0
votes
0
answers
123
views
How do I run multiple npm scripts at the same time?
Editor: vsCode, shell: bash, OS: windows.
I tried & operator, but only start the server.
"start": "npm run server & npm run client"
and I add start at the beginning, it ...