Encountering issues executing npm command "Error: Command failed: npm run start"

Attempting to execute a npx command on my M1 MacBook has consistently resulted in the same error. Despite having already installed node.js and npm for this specific purpose, when running the following command:

npx @mondaydotcomorg/monday-cli scaffold run ./ quickstart-react

The output continues to display:

> Repository was downloaded successfully
> Copying the directory
> Installing packages. It can take a few moments
> Node modules were installed successfully
> Running the project
Error: Command failed: npm run start

    at ChildProcess.exithandler (node:child_process:389:12)
    at ChildProcess.emit (node:events:513:28)
    at maybeClose (node:internal/child_process:1091:16)
    at Socket.<anonymous> (node:internal/child_process:449:11)
    at Socket.emit (node:events:513:28)
    at Pipe.<anonymous> (node:net:757:14) {
  code: 1,
  killed: false,
  signal: null,
  cmd: 'npm run start'
}

Prior to encountering this issue, errors like

sh: concurrently: command not found
and kill-port: command not found surfaced, prompting me to use npm to install both concurrently and kill-port, which resolved those initial error messages. However, the latest output poses a new challenge. I attempted reinstalling node.js and updating the npm version to no avail. Any suggestions for resolving this?

Edit: An effective solution to my precise dilemma was discovered through this link (). Following the execution of npm install kill-port and npm upgrade, both processes completed without issues. Yet, upon attempting to solely run the npm run start command, the following message is generated:

npm ERR! Missing script: "start"
npm ERR! 
npm ERR! Did you mean one of these?
npm ERR!     npm star # Mark your favorite packages
npm ERR!     npm stars # View packages marked as favorites
npm ERR! 
npm ERR! To see a list of scripts, run:
npm ERR!   npm run

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/mattspc/.npm/_logs/2022-07-18T21_08_52_459Z-debug-0.log

A possible next step may involve identifying the destination folder and using cd to navigate to it before executing npm run start. Any recommendations on how to locate this folder efficiently?

Answer №1

After some troubleshooting, I finally uncovered a solution to my own query. The root cause turned out to be the disparity in my npm version and node.js version.

To acquire the latest stable iteration of npm, execute this command in your terminal npm install -g npm@latest and ensure you procure the appropriate node.js version (specifically for Apple Silicon Chip/M1, select the pertinent option on the left). Next, input the nvm use --lts directive in your terminal to confirm usage of the proper and most reliable node.js version. Subsequently, navigate to the primary directory (located in the firstnamelastname folder on Mac) and delete the quickstart-react folder if it already exists. Following this, enter

npx @mondaydotcomorg/monday-cli scaffold run ./ quickstart-react
in your terminal (restart terminal if any error message appears, then proceed with the next step). The subsequent phase necessitates local execution, so conduct cd quickstart-react, followed by npm run start, which should prompt functionality. In case an error surfaces displaying sh: kill-port: command not found, make sure to install the specified dependency within the quickstart-react folder by searching "npm install kill-port" or "npm install ____" depending on the error, restart terminal, maneuver to the quickstart-react directory using cd quickstart-react, and execute the installation commands inside this folder. It should function properly after these adjustments.

If the aforementioned steps yield no results, attempt utilizing this hyperlink () providing instructions on manual resolution (this method didn't resolve the issue for me personally).

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

WebStorm experiencing issues with Express

I've encountered an issue while attempting to set up an Express project using WebStorm. The error message I received is as follows: error creating Node.js Express App. Time limit exceeded for command: "C:\Program Files\nodejs\node.exe" ...

Encountered an error while setting up Angular 2 Server with Express: ERR

My website was built with Angular2 on the frontend and Node/Express on the backend. The frontend runs on port 4200 (run npm build to start it) while the backend runs on port 4201 (npm start). I have a user login management view that works perfectly on loc ...

Executing the Docusaurus command to publish to Github Pages

Seeking assistance for a Windows user! I've tried various tutorials, but none have resolved my issue. Whenever I attempt to use the publish command in Git Bash, I encounter the following error: I am running Windows 10 and have tried both Github Desk ...

The Socket.io instance is missing sockets, resulting in an undefined state

Currently in the process of learning and experimenting with real-time chat systems. I'm attempting to construct a basic one. Here is the main section of my code: var express = require('express'); var http = require('http'); var f ...

Error in Node.js: Unable to assign headers once they have already been sent to the client

I'm encountering the issue of receiving the "Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client" error in my code. router.get("/", verify, async (req, res) => { const user = await pool.query("SELECT * FROM users W ...

Guide to using get() and res.sendFile() function to redirect webpages

Why is the page not redirecting properly? In my index.html file, I have this script: $.get( "/loginPage", function( data ) {}); The purpose of this script is to check if a user is logged in. If they are, it should redirect them to the lobbyPage. This is ...

Issue: unable to establish a connection to 127.0.0.1:465 to send an email

When attempting to send smtp alert messages from my site's email account <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="55363a3b2134362115383a3b263c21307b363">[email protected]</a> to the email addresses of m ...

NPM: There are no valid TypeScript file rules specified

Currently working on a small project using React.JS. Whenever I execute : npm run start, the following message gets logged: Starting type checking and linting service... Using 1 worker with 2048MB memory limit Watching: /Users/John/Projects/myProject/src ...

Is Alexa failing to provide the numerical values and calculations in its response, and only delivering text instead?

Currently, I am in the process of honing my skills in developing with Alexa. Following a Lynda course, I attempted to build the My Calculator skill. Unfortunately, I encountered an issue where the numbers and results were not being returned. After extensiv ...

What steps should I follow to update my NextJS version from v11 to v13?

I am currently working on upgrading the dependencies of my NextJS project to address security vulnerabilities using npm v9.5.1. The reason behind this task is the detection of a security issue by npm audit in my project: node-fetch <2.6.7 Severity: hi ...

convert and transform XML data into JSON format

I have been working with nodejs-expressjs and I received a response in raw XML format. My goal is to convert this raw XML into either a JavaScript array or a JSON array so that I can extract the domain name along with its status. I want to display this inf ...

Tips for securely encrypting passwords before adding them to a database:

While working with Nest.Js and TypeORM, I encountered an issue where I wanted to hash my password before saving it to the database. I initially attempted to use the @BeforeInsert() event decorator but ran into a roadblock. After some investigation, I disc ...

Is the npm capable of automatically downloading a compatible version with the Node version on the computer that is being used locally?

Does npm automatically handle library versions compatible with the Node.js environment? For example, if the latest version is only compatible with Node.js 18 or higher but my computer runs Node.js v14. When I use npm i <library>, will npm download a ...

npm encountered an error or issue during the installation process

I have configured my proxy settings in the .npmrc file, but I am encountering errors when running the npm install command: $ npm install npm ERR! Windows_NT 6.1.7601 npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program File ...

Are there more efficient methods than having to include require('mongoose') in each models file?

Is it possible to only require mongoose once in the main app.js file and then pass it to other files without loading it again? Will the script do extra work every time the same module is required? var mongoose = require('mongoose'); I'm wo ...

I have been working on building a login page for my node.js project, however, I have been facing challenges with retrieving the stored data from the database

Below is the snippet of code to add a new user into the database const User = require('../database/models/User') module.exports = (req, res) => { User.create(req.body, (error, user) => { if (error) { return res.redi ...

Having difficulty launching the sapper app in production mode

Having trouble starting my sapper project in production mode. When running npm run start, the following output appears on the console: niklas@Niklass-iMac project-name % npm run start > [email protected] start /Users/niklas/path/to/project > node _ ...

Encountering permission issues while trying to run yo @superset-ui/superset

Exploring ways to customize Apache Superset, I came across this page: With the command 'yo @superset-ui/superset', I encountered the following error: /usr/lib/node_modules/yo/node_modules/write-file-atomic/index.js:236 throw err ^ Error ...

Unable to integrate bower with gulp for automation

I am trying to get gulp to run the installation of all files listed in my bower.json. However, despite writing the code below, it is not working and I'm not seeing any errors. What could be causing this issue? var gulp = require("gulp"); var bower = ...

What could be causing a template value in my AngularJS/Ionic Framework code to not be replaced properly?

Recently, I've been exploring the world of Ionic Framework with Angular by my side. However, I've hit a bit of a roadblock. My goal is to set up tabs at the bottom of my application using a model definition. Here's what I've tried so ...