package-lock.json

Why does “npm install” rewrite package-lock.json?

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-26 21:14:16
I just recently upgraded to npm@5. I now have a package-lock.json file with everything from package.json. I would expect that, when I run npm install that the dependency versions would be pulled from the lock file to determine what should be installed in my node_modules directory. What's strange is that it actually ends up modifying and rewriting my package-lock.json file. For example, the lock file had typescript specified to be at version 2.1.6. Then, after the npm install command, the version was changed to 2.4.1. That seems to defeat the whole purpose of a lock file. What am I missing? How

Error: Local workspace file ('angular.json') could not be found

让人想犯罪 __ 提交于 2019-11-26 18:05:47
I have travis-ci integrated with my GitHub account ( https://github.com/pradeep0601/Angular5-Router-App ). When I updated @angular/cli version from 1.7.4 to 6.0.0-rc.3, the build started failing with an error: Local workspace file ('angular.json') could not be found. Error: Local workspace file ('angular.json') could not be found. at WorkspaceLoader._getProjectWorkspaceFilePath (/home/travis/build/pradeep0601/Angular5-Router-App/node_modules/@angular/cli/models/workspace-loader.js:37:19) at WorkspaceLoader.loadWorkspace (/home/travis/build/pradeep0601/Angular5-Router-App/node_modules/@angular

Error: Local workspace file ('angular.json') could not be found

Deadly 提交于 2019-11-26 07:53:29
问题 I have travis-ci integrated with my GitHub account (https://github.com/pradeep0601/Angular5-Router-App). When I updated @angular/cli version from 1.7.4 to 6.0.0-rc.3, the build started failing with an error: Local workspace file (\'angular.json\') could not be found. Error: Local workspace file (\'angular.json\') could not be found. at WorkspaceLoader._getProjectWorkspaceFilePath (/home/travis/build/pradeep0601/Angular5-Router-App/node_modules/@angular/cli/models/workspace-loader.js:37:19) at

Why does “npm install” rewrite package-lock.json?

你说的曾经没有我的故事 提交于 2019-11-26 06:51:40
问题 I just recently upgraded to npm@5. I now have a package-lock.json file with everything from package.json. I would expect that, when I run npm install that the dependency versions would be pulled from the lock file to determine what should be installed in my node_modules directory. What\'s strange is that it actually ends up modifying and rewriting my package-lock.json file. For example, the lock file had typescript specified to be at version 2.1.6. Then, after the npm install command, the