npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

npm start broken?

So I’m trying to run a start.js file for this application and well i went to the directory in cmd and i’ve tried everything else but npm cnnot find it and idk why. Any help? (i know nothing about this software btw)


npm start is documented at https://docs.npmjs.com/cli/start.html

Is it a public application we can look at on Github or similar?

What command are you typing?

What error is displayed?


npm run (directory here)


To run a javascript file called start.js you can just:

node start.js

npm is used for working with packages, and your application may or may not be a package.

npm run calls scripts declared in the package.json file and does not interact with the file system as such.