Top "Package.json" questions

All npm packages contain a file, usually in the project root, called package.

npm WARN The package is included as both a dev and production dependency

When running npm install I got these warning: npm WARN The package babel-core is included as both a dev and …

node.js npm package.json
Define private registry in package.json

We have a private npm repository based on Sinopia What should I define in package.json that some packages will …

node.js npm package.json npm-private-modules
Make `npm install --save` add a strict version to package.json

When you run npm install --save somepackage, it usually adds something like this into package.json: "dependencies": { "somepackage": "^2.1.0" } Because the …

node.js npm version package.json
proxy not working for react and node

I'm having issues with the proxy I set up. This is my root package.json file: "scripts": { "client": "cd client &…

node.js reactjs webpack proxy package.json
Webpack Upgrade - Module not found: Can't resolve node_modules

I'm currently working on a upgrade from Webpack 1 to 2, and then to 3. Within this upgrade, I've adhered to the migration …

webpack webpack-2 package.json yarnpkg webpack-loader
How can I reference package version in npm script?

I want to reference my package version in a npm script so I can show current version in the app. …

npm package.json npm-scripts
What Does Webpack 4 Expect From A Package With sideEffects: false

Webpack 4 has added a new feature: it now supports a sideEffects flag in the package.json of the modules it …

javascript webpack bundler package.json side-effects
Cannot find module 'prettier'

I updated all packages but still getting this error after running npm run serve: Module build failed (from ./node_modules/…

node.js npm eslint package.json prettier
error TS2300: Duplicate identifier 'PropertyKey' in node_modules/@types/core-js/index.d.ts

I have these errors in node_modules/@types/core-js/index.d.ts in Visual Studio Code IDE: When I run …

angular typescript package.json tsconfig
NPM Run Build Always Builds Production and Never Development

On an inherited project I have, I am trying to get the build command to build a version other than …

node.js npm package.json npm-scripts