-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Npm install fails in npm-force-resolutions if there is a space in the user folder #17
Comments
A workaround is setting npm cache folder to another place: |
I am having this issue also... |
I tried just about every suggestion I could find and then some. Running |
None of the above resolution worked for me. Any other fix for this? |
To anyone experiencing this issue, feel free to try: https://www.npmjs.com/package/force-resolutions Just change: "preinstall": "npx npm-force-resolutions" To: "preinstall": "npx force-resolutions" npx force-resolutions does not run when no package-lock.json is detected, and allows the next command inline to be executed as normal. This is useful when installing dependencies for a package that has been already published where package-lock.json is not available. If this issue persists please send more information to be able to replicate, and afterwards implement and adaptation Feedback and PR's are welcome |
Error: - In the `node` workflow, the `npm ci` command needs the `package-lock.json` file to work, but this file is removed before running `npm install` with the npm `preinstall` script. - In the `node` workflow, the version 16 check does not work because the `console.log` is not allowed by eslint in the `EditorJson.vue` file. Solution: - Update the `preinstall` npm script to make it faster. - In the `node` workflow, use the `npm install` command instead of `npm ci`, this command auto runs the npm `preinstall` script which already does a clean install, removing the `node_modules` folder and the `package-lock.json` file. - Disables the `no-console` slint rule in the `EditorJson.vue` file. Resolutions: - https://stackoverflow.com/a/68095189/10855837 - https://stackoverflow.com/a/53325242/10855837 - rogeriochaves/npm-force-resolutions#17 - https://www.npmjs.com/package/force-resolutions
Error: - In the `node` workflow, the `npm ci` command needs the `package-lock.json` file to work, but this file is removed before running `npm install` with the npm `preinstall` script. - In the `node` workflow, the version 16 check does not work because the `console.log` is not allowed by eslint in the `EditorJson.vue` file. Solution: - Update the `preinstall` npm script to make it faster. - In the `node` workflow, use the `npm install` command instead of `npm ci`, this command auto runs the npm `preinstall` script which already does a clean install, removing the `node_modules` folder and the `package-lock.json` file. - Disables the `no-console` slint rule in the `EditorJson.vue` file. Resolutions: - https://stackoverflow.com/a/68095189/10855837 - https://stackoverflow.com/a/53325242/10855837 - rogeriochaves/npm-force-resolutions#17 - https://www.npmjs.com/package/force-resolutions
Error: - In the `node` workflow, the `npm ci` command needs the `package-lock.json` file to work, but this file is removed before running `npm install` with the npm `preinstall` script. - In the `node` workflow, the version 16 check does not work because the `console.log` is not allowed by eslint in the `EditorJson.vue` file. Solution: - Update the `preinstall` npm script to make it faster. - In the `node` workflow, use the `npm install` command instead of `npm ci`, this command auto runs the npm `preinstall` script which already does a clean install, removing the `node_modules` folder and the `package-lock.json` file. - Disables the `no-console` slint rule in the `EditorJson.vue` file. Resolutions: - https://stackoverflow.com/a/68095189/10855837 - https://stackoverflow.com/a/53325242/10855837 - rogeriochaves/npm-force-resolutions#17 - https://www.npmjs.com/package/force-resolutions
Error: - In the `node` workflow, the `npm ci` command needs the `package-lock.json` file to work, but this file is removed before running `npm install` with the npm `preinstall` script. - In the `node` workflow, the version 16 check does not work because the `console.log` is not allowed by eslint in the `EditorJson.vue` file. Solution: - Update the `preinstall` npm script to make it faster. - In the `node` workflow, use the `npm install` command instead of `npm ci`, this command auto runs the npm `preinstall` script which already does a clean install, removing the `node_modules` folder and the `package-lock.json` file. - Disables the `no-console` slint rule in the `EditorJson.vue` file. Resolutions: - https://stackoverflow.com/a/68095189/10855837 - https://stackoverflow.com/a/53325242/10855837 - rogeriochaves/npm-force-resolutions#17 - https://www.npmjs.com/package/force-resolutions
Error: - In the `node` workflow, the `npm ci` command needs the `package-lock.json` file to work, but this file is removed before running `npm install` with the npm `preinstall` script. - In the `node` workflow, the version 16 check does not work because the `console.log` is not allowed by eslint in the `EditorJson.vue` file. Solution: - Update the `preinstall` npm script to make it faster. - In the `node` workflow, use the `npm install` command instead of `npm ci`, this command auto runs the npm `preinstall` script which already does a clean install, removing the `node_modules` folder and the `package-lock.json` file. - Disables the `no-console` slint rule in the `EditorJson.vue` file. Resolutions: - https://stackoverflow.com/a/68095189/10855837 - https://stackoverflow.com/a/53325242/10855837 - rogeriochaves/npm-force-resolutions#17 - https://www.npmjs.com/package/force-resolutions
Error: - In the `node` workflow, the `npm ci` command needs the `package-lock.json` file to work, but this file is removed before running `npm install` with the npm `preinstall` script. - In the `node` workflow, the version 16 check does not work because the `console.log` is not allowed by eslint in the `EditorJson.vue` file. Solution: - Update the `preinstall` npm script to make it faster. - In the `node` workflow, use the `npm install` command instead of `npm ci`, this command auto runs the npm `preinstall` script which already does a clean install, removing the `node_modules` folder and the `package-lock.json` file. - Disables the `no-console` slint rule in the `EditorJson.vue` file. Resolutions: - https://stackoverflow.com/a/68095189/10855837 - https://stackoverflow.com/a/53325242/10855837 - rogeriochaves/npm-force-resolutions#17 - https://www.npmjs.com/package/force-resolutions
Error: - In the `node` workflow, the `npm ci` command needs the `package-lock.json` file to work, but this file is removed before running `npm install` with the npm `preinstall` script. - In the `node` workflow, the version 16 check does not work because the `console.log` is not allowed by eslint in the `EditorJson.vue` file. Solution: - Update the `preinstall` npm script to make it faster. - In the `node` workflow, use the `npm install` command instead of `npm ci`, this command auto runs the npm `preinstall` script which already does a clean install, removing the `node_modules` folder and the `package-lock.json` file. - Disables the `no-console` slint rule in the `EditorJson.vue` file. Resolutions: - https://stackoverflow.com/a/68095189/10855837 - https://stackoverflow.com/a/53325242/10855837 - rogeriochaves/npm-force-resolutions#17 - https://www.npmjs.com/package/force-resolutions
Error: - In the `node` workflow, the `npm ci` command needs the `package-lock.json` file to work, but this file is removed before running `npm install` with the npm `preinstall` script. - In the `node` workflow, the version 16 check does not work because the `console.log` is not allowed by eslint in the `EditorJson.vue` file. Solution: - Update the `preinstall` npm script to make it faster. - In the `node` workflow, use the `npm install` command instead of `npm ci`, this command auto runs the npm `preinstall` script which already does a clean install, removing the `node_modules` folder and the `package-lock.json` file. - Disables the `no-console` slint rule in the `EditorJson.vue` file. Resolutions: - https://stackoverflow.com/a/68095189/10855837 - https://stackoverflow.com/a/53325242/10855837 - rogeriochaves/npm-force-resolutions#17 - https://www.npmjs.com/package/force-resolutions
Error: - In the `node` workflow, the `npm ci` command needs the `package-lock.json` file to work, but this file is removed before running `npm install` with the npm `preinstall` script. - In the `node` workflow, the version 16 check does not work because the `console.log` is not allowed by eslint in the `EditorJson.vue` file. Solution: - Update the `preinstall` npm script to make it faster. - In the `node` workflow, use the `npm install` command instead of `npm ci`, this command auto runs the npm `preinstall` script which already does a clean install, removing the `node_modules` folder and the `package-lock.json` file. - Disables the `no-console` slint rule in the `EditorJson.vue` file. Resolutions: - https://stackoverflow.com/a/68095189/10855837 - https://stackoverflow.com/a/53325242/10855837 - rogeriochaves/npm-force-resolutions#17 - https://www.npmjs.com/package/force-resolutions
Error: - In the `node` workflow, the `npm ci` command needs the `package-lock.json` file to work, but this file is removed before running `npm install` with the npm `preinstall` script. - In the `node` workflow, the version 16 check does not work because the `console.log` is not allowed by eslint in the `EditorJson.vue` file. Solution: - Update the `preinstall` npm script to make it faster. - In the `node` workflow, use the `npm install` command instead of `npm ci`, this command auto runs the npm `preinstall` script which already does a clean install, removing the `node_modules` folder and the `package-lock.json` file. - Disables the `no-console` slint rule in the `EditorJson.vue` file. Resolutions: - https://stackoverflow.com/a/68095189/10855837 - https://stackoverflow.com/a/53325242/10855837 - rogeriochaves/npm-force-resolutions#17 - https://www.npmjs.com/package/force-resolutions
Error: - In the `node` workflow, the `npm ci` command needs the `package-lock.json` file to work, but this file is removed before running `npm install` with the npm `preinstall` script. - In the `node` workflow, the version 16 check does not work because the `console.log` is not allowed by eslint in the `EditorJson.vue` file. Solution: - Update the `preinstall` npm script to make it faster. - In the `node` workflow, use the `npm install` command instead of `npm ci`, this command auto runs the npm `preinstall` script which already does a clean install, removing the `node_modules` folder and the `package-lock.json` file. - Disables the `no-console` slint rule in the `EditorJson.vue` file. Resolutions: - https://stackoverflow.com/a/68095189/10855837 - https://stackoverflow.com/a/53325242/10855837 - rogeriochaves/npm-force-resolutions#17 - https://www.npmjs.com/package/force-resolutions
Error: - In the `node` workflow, the `npm ci` command needs the `package-lock.json` file to work, but this file is removed before running `npm install` with the npm `preinstall` script. - In the `node` workflow, the version 16 check does not work because the `console.log` is not allowed by eslint in the `EditorJson.vue` file. Solution: - Update the `preinstall` npm script to make it faster. - In the `node` workflow, use the `npm install` command instead of `npm ci`, this command auto runs the npm `preinstall` script which already does a clean install, removing the `node_modules` folder and the `package-lock.json` file. - Disables the `no-console` slint rule in the `EditorJson.vue` file. Resolutions: - https://stackoverflow.com/a/68095189/10855837 - https://stackoverflow.com/a/53325242/10855837 - rogeriochaves/npm-force-resolutions#17 - https://www.npmjs.com/package/force-resolutions
Error: - In the `node` workflow, the `npm ci` command needs the `package-lock.json` file to work, but this file is removed before running `npm install` with the npm `preinstall` script. - In the `node` workflow, the version 16 check does not work because the `console.log` is not allowed by eslint in the `EditorJson.vue` file. Solution: - Update the `preinstall` npm script to make it faster. - In the `node` workflow, use the `npm install` command instead of `npm ci`, this command auto runs the npm `preinstall` script which already does a clean install, removing the `node_modules` folder and the `package-lock.json` file. - Disables the `no-console` slint rule in the `EditorJson.vue` file. Resolutions: - https://stackoverflow.com/a/68095189/10855837 - https://stackoverflow.com/a/53325242/10855837 - rogeriochaves/npm-force-resolutions#17 - https://www.npmjs.com/package/force-resolutions
Error: - In the `node` workflow, the `npm ci` command needs the `package-lock.json` file to work, but this file is removed before running `npm install` with the npm `preinstall` script. - In the `node` workflow, the version 16 check does not work because the `console.log` is not allowed by eslint in the `EditorJson.vue` file. Solution: - Update the `preinstall` npm script to make it faster. - In the `node` workflow, use the `npm install` command instead of `npm ci`, this command auto runs the npm `preinstall` script which already does a clean install, removing the `node_modules` folder and the `package-lock.json` file. - Disables the `no-console` slint rule in the `EditorJson.vue` file. Resolutions: - https://stackoverflow.com/a/68095189/10855837 - https://stackoverflow.com/a/53325242/10855837 - rogeriochaves/npm-force-resolutions#17 - https://www.npmjs.com/package/force-resolutions
Error: - In the `node` workflow, the `npm ci` command needs the `package-lock.json` file to work, but this file is removed before running `npm install` with the npm `preinstall` script. - In the `node` workflow, the version 16 check does not work because the `console.log` is not allowed by eslint in the `EditorJson.vue` file. Solution: - Update the `preinstall` npm script to make it faster. - In the `node` workflow, use the `npm install` command instead of `npm ci`, this command auto runs the npm `preinstall` script which already does a clean install, removing the `node_modules` folder and the `package-lock.json` file. - Disables the `no-console` slint rule in the `EditorJson.vue` file. Resolutions: - https://stackoverflow.com/a/68095189/10855837 - https://stackoverflow.com/a/53325242/10855837 - rogeriochaves/npm-force-resolutions#17 - https://www.npmjs.com/package/force-resolutions
Error: - In the `node` workflow, the `npm ci` command needs the `package-lock.json` file to work, but this file is removed before running `npm install` with the npm `preinstall` script. - In the `node` workflow, the version 16 check does not work because the `console.log` is not allowed by eslint in the `EditorJson.vue` file. Solution: - Update the `preinstall` npm script to make it faster. - In the `node` workflow, use the `npm install` command instead of `npm ci`, this command auto runs the npm `preinstall` script which already does a clean install, removing the `node_modules` folder and the `package-lock.json` file. - Disables the `no-console` slint rule in the `EditorJson.vue` file. Resolutions: - https://stackoverflow.com/a/68095189/10855837 - https://stackoverflow.com/a/53325242/10855837 - rogeriochaves/npm-force-resolutions#17 - https://www.npmjs.com/package/force-resolutions
… >14 Error: - In the `node` workflow, the `npm ci` command does not work, it needs the `package-lock.json` file to work, but this file is removed by the npm `preinstall` script. - In the `node` workflow, the version 16 check does not work because the `console.log` file is not allowed by eslint in the `EditorJson.vue` file. Solution: - Use in workflows the `npm install` command instead of `npm ci`. The `npm install` automatically runs the npm `preinstall` script which already does a clean install, removing the `node_modules` folder and the `package-lock.json` file. - Disables the `no-console` slint rule in the `EditorJson.vue` file. - Use `node` version 14 for the project, the following versions still do not work. Resolutions: - https://stackoverflow.com/a/68095189/10855837 - https://stackoverflow.com/a/53325242/10855837 - rogeriochaves/npm-force-resolutions#17 - https://www.npmjs.com/package/force-resolutions
… >14 Error: - In the `node` workflow, the `npm ci` command does not work, it needs the `package-lock.json` file to work, but this file is removed by the npm `preinstall` script. - In the `node` workflow, the version 16 check does not work because the `console.log` file is not allowed by eslint in the `EditorJson.vue` file. Solution: - Use in workflows the `npm install` command instead of `npm ci`. The `npm install` automatically runs the npm `preinstall` script which already does a clean install, removing the `node_modules` folder and the `package-lock.json` file. - Disables the `no-console` slint rule in the `EditorJson.vue` file. - Use `node` version 14 for the project, the following versions still do not work. Resolutions: - https://stackoverflow.com/a/68095189/10855837 - https://stackoverflow.com/a/53325242/10855837 - rogeriochaves/npm-force-resolutions#17 - https://www.npmjs.com/package/force-resolutions
… >14 Error: - In the `node` workflow, the `npm ci` command does not work, it needs the `package-lock.json` file to work, but this file is removed by the npm `preinstall` script. - In the `node` workflow, the version 16 check does not work because the `console.log` file is not allowed by eslint in the `EditorJson.vue` file. Solution: - Use in workflows the `npm install` command instead of `npm ci`. The `npm install` automatically runs the npm `preinstall` script which already does a clean install, removing the `node_modules` folder and the `package-lock.json` file. - Disables the `no-console` slint rule in the `EditorJson.vue` file. - Use `node` version 14 for the project, the following versions still do not work. Resolutions: - https://stackoverflow.com/a/68095189/10855837 - https://stackoverflow.com/a/53325242/10855837 - rogeriochaves/npm-force-resolutions#17 - https://www.npmjs.com/package/force-resolutions
… >14 Error: - In the `node` workflow, the `npm ci` command does not work, it needs the `package-lock.json` file to work, but this file is removed by the npm `preinstall` script. - In the `node` workflow, the version 16 check does not work because the `console.log` file is not allowed by eslint in the `EditorJson.vue` file. Solution: - Use in workflows the `npm install` command instead of `npm ci`. The `npm install` automatically runs the npm `preinstall` script which already does a clean install, removing the `node_modules` folder and the `package-lock.json` file. - Disables the `no-console` slint rule in the `EditorJson.vue` file. - Use `node` version 14 for the project, the following versions still do not work. Resolutions: - https://stackoverflow.com/a/68095189/10855837 - https://stackoverflow.com/a/53325242/10855837 - rogeriochaves/npm-force-resolutions#17 - https://www.npmjs.com/package/force-resolutions
Error: - In the `node` workflow, the `npm ci` command does not work, it needs the `package-lock.json` file to work, but this file is removed by the npm `preinstall` script. Solution: - Use in workflows the `npm install` command instead of `npm ci`. The `npm install` automatically runs the npm `preinstall` script which already does a clean install, removing the `node_modules` folder and the `package-lock.json` file. - Use `node` version 14 for the project, the following versions still do not work. References: - npm-force-resolutions not working when installing a new package https://stackoverflow.com/a/68095189/10855837 - What is the difference between "npm install" and "npm ci"? https://stackoverflow.com/a/53325242/10855837 - Npm install fails in npm-force-resolutions if there is a space in the user folder rogeriochaves/npm-force-resolutions#17 - NPM force-resolutions https://www.npmjs.com/package/force-resolutions
Error: - In the `node` workflow, the `npm ci` command does not work, it needs the `package-lock.json` file to work, but this file is removed by the npm `preinstall` script. Solution: - Use in workflows the `npm install` command instead of `npm ci`. The `npm install` automatically runs the npm `preinstall` script which already does a clean install, removing the `node_modules` folder and the `package-lock.json` file. - Use `node` version 14 for the project, the following versions still do not work. References: - npm-force-resolutions not working when installing a new package https://stackoverflow.com/a/68095189/10855837 - What is the difference between "npm install" and "npm ci"? https://stackoverflow.com/a/53325242/10855837 - Npm install fails in npm-force-resolutions if there is a space in the user folder rogeriochaves/npm-force-resolutions#17 - NPM force-resolutions https://www.npmjs.com/package/force-resolutions
Error: - In the `node` workflow, the `npm ci` command does not work, it needs the `package-lock.json` file to work, but this file is removed by the npm `preinstall` script. Solution: - Use in workflows the `npm install` command instead of `npm ci`. The `npm install` automatically runs the npm `preinstall` script which already does a clean install, removing the `node_modules` folder and the `package-lock.json` file. - Use `node` version 14 for the project, the following versions still do not work. References: - npm-force-resolutions not working when installing a new package https://stackoverflow.com/a/68095189/10855837 - What is the difference between "npm install" and "npm ci"? https://stackoverflow.com/a/53325242/10855837 - Npm install fails in npm-force-resolutions if there is a space in the user folder rogeriochaves/npm-force-resolutions#17 - NPM force-resolutions https://www.npmjs.com/package/force-resolutions
Error: - In the `node` workflow, the `npm ci` command does not work, it needs the `package-lock.json` file to work, but this file is removed by the npm `preinstall` script. Solution: - Use in workflows the `npm install` command instead of `npm ci`. The `npm install` automatically runs the npm `preinstall` script which already does a clean install, removing the `node_modules` folder and the `package-lock.json` file. - Use `node` version 14 for the project, the following versions still do not work. References: - npm-force-resolutions not working when installing a new package https://stackoverflow.com/a/68095189/10855837 - What is the difference between "npm install" and "npm ci"? https://stackoverflow.com/a/53325242/10855837 - Npm install fails in npm-force-resolutions if there is a space in the user folder rogeriochaves/npm-force-resolutions#17 - NPM force-resolutions https://www.npmjs.com/package/force-resolutions
Error: - In the `node` workflow, the `npm ci` command does not work, it needs the `package-lock.json` file to work, but this file is removed by the npm `preinstall` script. Solution: - Use in workflows the `npm install` command instead of `npm ci`. The `npm install` automatically runs the npm `preinstall` script which already does a clean install, removing the `node_modules` folder and the `package-lock.json` file. - Use `node` version 14 for the project, the following versions still do not work. References: - npm-force-resolutions not working when installing a new package https://stackoverflow.com/a/68095189/10855837 - What is the difference between "npm install" and "npm ci"? https://stackoverflow.com/a/53325242/10855837 - Npm install fails in npm-force-resolutions if there is a space in the user folder rogeriochaves/npm-force-resolutions#17 - NPM force-resolutions https://www.npmjs.com/package/force-resolutions
Error: - In the `node` workflow, the `npm ci` command does not work, it needs the `package-lock.json` file to work, but this file is removed by the npm `preinstall` script. Solution: - Use in workflows the `npm install` command instead of `npm ci`. The `npm install` automatically runs the npm `preinstall` script which already does a clean install, removing the `node_modules` folder and the `package-lock.json` file. - Use `node` version 14 for the project, the following versions still do not work. References: - npm-force-resolutions not working when installing a new package https://stackoverflow.com/a/68095189/10855837 - What is the difference between "npm install" and "npm ci"? https://stackoverflow.com/a/53325242/10855837 - Npm install fails in npm-force-resolutions if there is a space in the user folder rogeriochaves/npm-force-resolutions#17 - NPM force-resolutions https://www.npmjs.com/package/force-resolutions
Error: - In the `node` workflow, the `npm ci` command does not work, it needs the `package-lock.json` file to work, but this file is removed by the npm `preinstall` script. Solution: - Use in workflows the `npm install` command instead of `npm ci`. The `npm install` automatically runs the npm `preinstall` script which already does a clean install, removing the `node_modules` folder and the `package-lock.json` file. - Use `node` version 14 for the project, the following versions still do not work. References: - npm-force-resolutions not working when installing a new package https://stackoverflow.com/a/68095189/10855837 - What is the difference between "npm install" and "npm ci"? https://stackoverflow.com/a/53325242/10855837 - Npm install fails in npm-force-resolutions if there is a space in the user folder rogeriochaves/npm-force-resolutions#17 - NPM force-resolutions https://www.npmjs.com/package/force-resolutions
Error: - In the `node` workflow, the `npm ci` command does not work, it needs the `package-lock.json` file to work, but this file is removed by the npm `preinstall` script. Solution: - Use in workflows the `npm install` command instead of `npm ci`. The `npm install` automatically runs the npm `preinstall` script which already does a clean install, removing the `node_modules` folder and the `package-lock.json` file. - Use `node` version 14 for the project, the following versions still do not work. References: - npm-force-resolutions not working when installing a new package https://stackoverflow.com/a/68095189/10855837 - What is the difference between "npm install" and "npm ci"? https://stackoverflow.com/a/53325242/10855837 - Npm install fails in npm-force-resolutions if there is a space in the user folder rogeriochaves/npm-force-resolutions#17 - NPM force-resolutions https://www.npmjs.com/package/force-resolutions
Error: - In the `node` workflow, the `npm ci` command does not work, it needs the `package-lock.json` file to work, but this file is removed by the npm `preinstall` script. Solution: - Use in workflows the `npm install` command instead of `npm ci`. The `npm install` automatically runs the npm `preinstall` script which already does a clean install, removing the `node_modules` folder and the `package-lock.json` file. - Use `node` version 14 for the project, the following versions still do not work. References: - npm-force-resolutions not working when installing a new package https://stackoverflow.com/a/68095189/10855837 - What is the difference between "npm install" and "npm ci"? https://stackoverflow.com/a/53325242/10855837 - Npm install fails in npm-force-resolutions if there is a space in the user folder rogeriochaves/npm-force-resolutions#17 - NPM force-resolutions https://www.npmjs.com/package/force-resolutions
Error: - In the `node` workflow, the `npm ci` command does not work, it needs the `package-lock.json` file to work, but this file is removed by the npm `preinstall` script. Solution: - Use in workflows the `npm install` command instead of `npm ci`. The `npm install` automatically runs the npm `preinstall` script which already does a clean install, removing the `node_modules` folder and the `package-lock.json` file. - Use `node` version 14 for the project, the following versions still do not work. References: - npm-force-resolutions not working when installing a new package https://stackoverflow.com/a/68095189/10855837 - What is the difference between "npm install" and "npm ci"? https://stackoverflow.com/a/53325242/10855837 - Npm install fails in npm-force-resolutions if there is a space in the user folder rogeriochaves/npm-force-resolutions#17 - NPM force-resolutions https://www.npmjs.com/package/force-resolutions
Error: - In the `node` workflow, the `npm ci` command does not work, it needs the `package-lock.json` file to work, but this file is removed by the npm `preinstall` script. Solution: - Use in workflows the `npm install` command instead of `npm ci`. The `npm install` automatically runs the npm `preinstall` script which already does a clean install, removing the `node_modules` folder and the `package-lock.json` file. - Use `node` version 14 for the project, the following versions still do not work. References: - npm-force-resolutions not working when installing a new package https://stackoverflow.com/a/68095189/10855837 - What is the difference between "npm install" and "npm ci"? https://stackoverflow.com/a/53325242/10855837 - Npm install fails in npm-force-resolutions if there is a space in the user folder rogeriochaves/npm-force-resolutions#17 - NPM force-resolutions https://www.npmjs.com/package/force-resolutions
Error: - In the `node` workflow, the `npm ci` command does not work, it needs the `package-lock.json` file to work, but this file is removed by the npm `preinstall` script. Solution: - Use in workflows the `npm install` command instead of `npm ci`. The `npm install` automatically runs the npm `preinstall` script which already does a clean install, removing the `node_modules` folder and the `package-lock.json` file. - Use `node` version 14 for the project, the following versions still do not work. References: - npm-force-resolutions not working when installing a new package https://stackoverflow.com/a/68095189/10855837 - What is the difference between "npm install" and "npm ci"? https://stackoverflow.com/a/53325242/10855837 - Npm install fails in npm-force-resolutions if there is a space in the user folder rogeriochaves/npm-force-resolutions#17 - NPM force-resolutions https://www.npmjs.com/package/force-resolutions
Error: - In the `node` workflow, the `npm ci` command does not work, it needs the `package-lock.json` file to work, but this file is removed by the npm `preinstall` script. Solution: - Use in workflows the `npm install` command instead of `npm ci`. The `npm install` automatically runs the npm `preinstall` script which already does a clean install, removing the `node_modules` folder and the `package-lock.json` file. - Use `node` version 14 for the project, the following versions still do not work. References: - npm-force-resolutions not working when installing a new package https://stackoverflow.com/a/68095189/10855837 - What is the difference between "npm install" and "npm ci"? https://stackoverflow.com/a/53325242/10855837 - Npm install fails in npm-force-resolutions if there is a space in the user folder rogeriochaves/npm-force-resolutions#17 - NPM force-resolutions https://www.npmjs.com/package/force-resolutions
Error: - In the `node` workflow, the `npm ci` command does not work, it needs the `package-lock.json` file to work, but this file is removed by the npm `preinstall` script. Solution: - Use in workflows the `npm install` command instead of `npm ci`. The `npm install` automatically runs the npm `preinstall` script which already does a clean install, removing the `node_modules` folder and the `package-lock.json` file. - Use `node` version 14 for the project, the following versions still do not work. References: - npm-force-resolutions not working when installing a new package https://stackoverflow.com/a/68095189/10855837 - What is the difference between "npm install" and "npm ci"? https://stackoverflow.com/a/53325242/10855837 - Npm install fails in npm-force-resolutions if there is a space in the user folder rogeriochaves/npm-force-resolutions#17 - NPM force-resolutions https://www.npmjs.com/package/force-resolutions
Error: - In the `node` workflow, the `npm ci` command does not work, it needs the `package-lock.json` file to work, but this file is removed by the npm `preinstall` script. Solution: - Use in workflows the `npm install` command instead of `npm ci`. The `npm install` automatically runs the npm `preinstall` script which already does a clean install, removing the `node_modules` folder and the `package-lock.json` file. - Use `node` version 14 for the project, the following versions still do not work. References: - npm-force-resolutions not working when installing a new package https://stackoverflow.com/a/68095189/10855837 - What is the difference between "npm install" and "npm ci"? https://stackoverflow.com/a/53325242/10855837 - Npm install fails in npm-force-resolutions if there is a space in the user folder rogeriochaves/npm-force-resolutions#17 - NPM force-resolutions https://www.npmjs.com/package/force-resolutions
Error: - In the `node` workflow, the `npm ci` command does not work, it needs the `package-lock.json` file to work, but this file is removed by the npm `preinstall` script. Solution: - Use in workflows the `npm install` command instead of `npm ci`. The `npm install` automatically runs the npm `preinstall` script which already does a clean install, removing the `node_modules` folder and the `package-lock.json` file. - Use `node` version 14 for the project, the following versions still do not work. References: - npm-force-resolutions not working when installing a new package https://stackoverflow.com/a/68095189/10855837 - What is the difference between "npm install" and "npm ci"? https://stackoverflow.com/a/53325242/10855837 - Npm install fails in npm-force-resolutions if there is a space in the user folder rogeriochaves/npm-force-resolutions#17 - NPM force-resolutions https://www.npmjs.com/package/force-resolutions
Error: - In the `node` workflow, the `npm ci` command does not work, it needs the `package-lock.json` file to work, but this file is removed by the npm `preinstall` script. Solution: - Use in workflows the `npm install` command instead of `npm ci`. The `npm install` automatically runs the npm `preinstall` script which already does a clean install, removing the `node_modules` folder and the `package-lock.json` file. - Use `node` version 14 for the project, the following versions still do not work. References: - npm-force-resolutions not working when installing a new package https://stackoverflow.com/a/68095189/10855837 - What is the difference between "npm install" and "npm ci"? https://stackoverflow.com/a/53325242/10855837 - Npm install fails in npm-force-resolutions if there is a space in the user folder rogeriochaves/npm-force-resolutions#17 - NPM force-resolutions https://www.npmjs.com/package/force-resolutions
Error: - In the `node` workflow, the `npm ci` command does not work, it needs the `package-lock.json` file to work, but this file is removed by the npm `preinstall` script. Solution: - Use in workflows the `npm install` command instead of `npm ci`. The `npm install` automatically runs the npm `preinstall` script which already does a clean install, removing the `node_modules` folder and the `package-lock.json` file. - Use `node` version 14 for the project, the following versions still do not work. References: - npm-force-resolutions not working when installing a new package https://stackoverflow.com/a/68095189/10855837 - What is the difference between "npm install" and "npm ci"? https://stackoverflow.com/a/53325242/10855837 - Npm install fails in npm-force-resolutions if there is a space in the user folder rogeriochaves/npm-force-resolutions#17 - NPM force-resolutions https://www.npmjs.com/package/force-resolutions
Error: - In the `node` workflow, the `npm ci` command does not work, it needs the `package-lock.json` file to work, but this file is removed by the npm `preinstall` script. Solution: - Use in workflows the `npm install` command instead of `npm ci`. The `npm install` automatically runs the npm `preinstall` script which already does a clean install, removing the `node_modules` folder and the `package-lock.json` file. - Use `node` version 14 for the project, the following versions still do not work. References: - npm-force-resolutions not working when installing a new package https://stackoverflow.com/a/68095189/10855837 - What is the difference between "npm install" and "npm ci"? https://stackoverflow.com/a/53325242/10855837 - Npm install fails in npm-force-resolutions if there is a space in the user folder rogeriochaves/npm-force-resolutions#17 - NPM force-resolutions https://www.npmjs.com/package/force-resolutions
Error: - In the `node` workflow, the `npm ci` command does not work, it needs the `package-lock.json` file to work, but this file is removed by the npm `preinstall` script. Solution: - Use in workflows the `npm install` command instead of `npm ci`. The `npm install` automatically runs the npm `preinstall` script which already does a clean install, removing the `node_modules` folder and the `package-lock.json` file. - Use `node` version 14 for the project, the following versions still do not work. References: - npm-force-resolutions not working when installing a new package https://stackoverflow.com/a/68095189/10855837 - What is the difference between "npm install" and "npm ci"? https://stackoverflow.com/a/53325242/10855837 - Npm install fails in npm-force-resolutions if there is a space in the user folder rogeriochaves/npm-force-resolutions#17 - NPM force-resolutions https://www.npmjs.com/package/force-resolutions
Here is the error I am getting when running
npm install
:Here is the debut log (C:\Users\Andre Teixeira\AppData\Roaming\npm-cache_logs\2020-09-21T13_07_45_868Z-debug.log)
I know it is not an npm preinstall error because if I try running any other command on preinstall, it works well.
The text was updated successfully, but these errors were encountered: