no package.json but package-lock.json code example
Example: npmrc package-lock
//Global
npm config set package-lock false
//Local
echo 'package-lock=false' >> .npmrc
//Global
npm config set package-lock false
//Local
echo 'package-lock=false' >> .npmrc