About 3,220,000 results
Open links in new tab
  1. node.js - Local dependency in package.json - Stack Overflow

    Jan 17, 2013 · 260 It is now possible to specify local Node module installation paths in your package.json directly. From the docs: Local Paths As of version 2.0.0 you can provide a path to a …

  2. How to add a custom script to package.json that runs a javascript file?

    npm start Additional use case My package.json file has generally the following scripts, which enable me to watch my files for typescript, sass compilations and running a server as well.

  3. node.js - How can I update each dependency in package.json to the ...

    2935 I copied package.json from another project and now want to bump all of the dependencies to their latest versions since this is a fresh project and I don't mind fixing something if it breaks. What's the …

  4. Why is 'type: module' in package.json file? - Stack Overflow

    Apr 24, 2020 · The "type" field defines the module format that Node.js uses for all .js files that have that package.json file as their nearest parent. Files ending with .js are loaded as ES modules when the …

  5. What's the difference between tilde(~) and caret(^) in package.json?

    After I upgraded to the latest stable node and npm, I tried npm install moment --save. It saves the entry in the package.json with the caret ^ prefix. Previously, it was a tilde ~ prefix. Why are ...

  6. What's the difference between dependencies, devDependencies, and ...

    What's the difference between dependencies, devDependencies, and peerDependencies in NPM package.json file? Asked 12 years, 3 months ago Modified 9 months ago Viewed 1.1m times

  7. Is there a way to automatically build the package.json file for Node.js ...

    Apr 1, 2012 · 457 Is package.json supposed to be manually edited? Couldn't a program like NPM just look through the files, see the require statements, and then use that to put the necessary entries in …

  8. javascript - Root directory in package.json - Stack Overflow

    May 18, 2015 · Also as stated in the bug about adding mainDir property into package.json you can just temporarily copy your sources and the package.json file into one directory and publish from there.

  9. Is the "files" property necessary in package.json?

    Jun 16, 2016 · It looks like the package will include all files (that are not ignored), even if the package.json has no "files" array. Is that property necessary?

  10. Is there a way to get the version from the 'package.json' file in Node ...

    Aug 15, 2020 · This code assumes that your package.json file is in the root directory of your Node.js application. If it's located in a different directory, adjust the require path accordingly.