Open t2ym opened 5 years ago
[NPM] npm install can corrupt node_modules and package-lock.json for custom packages from GitHub
npm install
node_modules
package-lock.json
github:
npm ci
npm install --save-dev github:t2ym/espree#es2018 github:t2ym/escodegen#es2018
[NPM]
npm install
can corruptnode_modules
andpackage-lock.json
for custom packages from GitHubRoot Cause
github:
can be overridden by non-custom packages on some (currently unknown) conditionsWorkaround # 1
npm ci
ifpackage-lock.json
is intactWorkaround # 2
npm install --save-dev github:t2ym/espree#es2018 github:t2ym/escodegen#es2018
to fix the installation innode_modules
andpackage-lock.json
.package-lock.json
as top-level dependencies