Open shahriar-prepmock opened 6 months ago
I am working on a pretty old project and it uses React Select - 2.4.3 We are using Node Version - 6.17.1 and npm version - 3.10.10
it was running smooth until from a few days back, we are having issues in building the frontend for production.
when I run npm install --production , after a while it throws an error. The error is given below.
npm install --production
npm ERR! Linux 6.2.0-39-generic npm ERR! argv "/home/shahriar/.nvm/versions/node/v6.17.1/bin/node" "/home/shahriar/.nvm/versions/node/v6.17.1/bin/npm" "install" "--production" npm ERR! node v6.17.1 npm ERR! npm v3.10.10 npm ERR! path /home/shahriar/aquila-new/PCMS/node_modules/.staging/@types/parse-json-f432fd30/package.json npm ERR! code ENOTDIR npm ERR! errno -20 npm ERR! syscall open npm ERR! ENOTDIR: not a directory, open '/home/shahriar/aquila-new/PCMS/node_modules/.staging/@types/parse-json-f432fd30/package.json'
if I remove the react-select, it will not throw this error. so I am pretty much sure that this issue is triggering because of React-Select.
I have also tried with a brand new package.json file where the only dependency is react-select. This is the package.json file
react-select
{ "name": "select-only", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "author": "", "license": "ISC", "dependencies": { "react-select": "^2.4.3" } }
I used node version 6.17.1 npm version 3.10.10
It shows the same above error.
I am working on a pretty old project and it uses React Select - 2.4.3 We are using Node Version - 6.17.1 and npm version - 3.10.10
it was running smooth until from a few days back, we are having issues in building the frontend for production.
when I run
npm install --production
, after a while it throws an error. The error is given below.if I remove the react-select, it will not throw this error. so I am pretty much sure that this issue is triggering because of React-Select.
I have also tried with a brand new package.json file where the only dependency is
react-select
. This is the package.json fileI used node version 6.17.1 npm version 3.10.10
It shows the same above error.